OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../partimage/partimage-0.6.9-zlib-1.2.5.2.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Fix building with zlib >= 1.2.5.2
  17. http://bugs.gentoo.org/405323
  18. --- partimage-0.6.9-orig/src/client/imagefile.cpp
  19. +++ partimage-0.6.9/src/client/imagefile.cpp
  20. @@ -783,7 +783,7 @@
  21. else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
  22. {
  23. showDebug(1, "open gzip\n");
  24. - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
  25. + m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h");
  26. if (m_gzImageFile == NULL)
  27. {
  28. showDebug(1, "error:%d %s\n", errno, strerror(errno));
  29. @@ -1098,7 +1098,7 @@
  30. }
  31. else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
  32. {
  33. - m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
  34. + m_gzImageFile = gzdopen(m_nFdImage, "rb");
  35. if (m_gzImageFile == NULL)
  36. THROW(ERR_ERRNO, errno);
  37. else
  38. --- partimage-0.6.9-orig/src/client/imagefile.h
  39. +++ partimage-0.6.9/src/client/imagefile.h
  40. @@ -41,7 +41,7 @@
  41. COptions m_options;
  42. FILE *m_fImageFile;
  43. - gzFile *m_gzImageFile;
  44. + gzFile m_gzImageFile;
  45. BZFILE *m_bzImageFile;
  46. int m_nFdImage;