]> git.pld-linux.org Git - packages/partimage.git/blob - partimage-gzFile.patch
Fix build with zlib >= 1.2.6 (patch from Fedora)
[packages/partimage.git] / partimage-gzFile.patch
1 diff -Naur partimage-0.6.9/src/client/imagefile.cpp partimage-0.6.9-new/src/client/imagefile.cpp
2 --- partimage-0.6.9/src/client/imagefile.cpp    2010-07-25 12:30:31.000000000 -0300
3 +++ partimage-0.6.9-new/src/client/imagefile.cpp        2012-09-20 08:52:11.568839328 -0300
4 @@ -783,7 +783,7 @@
5    else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
6      {
7        showDebug(1, "open gzip\n");
8 -      m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
9 +      m_gzImageFile = (gzFile) gzdopen(m_nFdImage, "wb"); //"wb1h");
10        if (m_gzImageFile == NULL)
11         {
12           showDebug(1, "error:%d %s\n", errno, strerror(errno));
13 @@ -1098,7 +1098,7 @@
14      }
15    else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
16      {
17 -      m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
18 +      m_gzImageFile = (gzFile) gzdopen(m_nFdImage, "rb");
19        if (m_gzImageFile == NULL)
20          THROW(ERR_ERRNO, errno);
21        else
22 diff -Naur partimage-0.6.9/src/client/imagefile.h partimage-0.6.9-new/src/client/imagefile.h
23 --- partimage-0.6.9/src/client/imagefile.h      2010-07-25 12:30:31.000000000 -0300
24 +++ partimage-0.6.9-new/src/client/imagefile.h  2012-09-20 09:00:44.028620131 -0300
25 @@ -41,7 +41,7 @@
26    COptions m_options;
27  
28    FILE *m_fImageFile;
29 -  gzFile *m_gzImageFile;
30 +  gzFile m_gzImageFile;
31    BZFILE *m_bzImageFile;
32  
33    int m_nFdImage;
This page took 0.099885 seconds and 3 git commands to generate.