ucon64-2.0.0-zlib.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- misc/unzip.h.old 2011-09-23 19:53:09.708884325 +0200
  2. +++ misc/unzip.h 2011-09-23 19:54:00.012878355 +0200
  3. @@ -49,6 +49,10 @@
  4. #include "zlib.h"
  5. #endif
  6. +#ifndef OF
  7. +#define OF(x) x
  8. +#endif
  9. +
  10. #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
  11. /* like the STRICT of WIN32, we define a pointer that cannot be converted
  12. from (void*) without cast */
  13. --- libdiscmage/unzip.h.old 2011-09-23 19:59:47.319837133 +0200
  14. +++ libdiscmage/unzip.h 2011-09-23 20:00:07.230834769 +0200
  15. @@ -48,6 +48,9 @@
  16. #ifndef _ZLIB_H
  17. #include "zlib.h"
  18. #endif
  19. +#ifndef OF
  20. +#define OF(x) x
  21. +#endif
  22. #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
  23. /* like the STRICT of WIN32, we define a pointer that cannot be converted
  24. --- libdiscmage/misc_z.c.old 2012-03-19 08:39:41.975022496 +0100
  25. +++ libdiscmage/misc_z.c 2012-03-19 08:40:13.109803301 +0100
  26. @@ -27,6 +27,7 @@
  27. #include <string.h>
  28. #include <errno.h>
  29. #include <sys/stat.h>
  30. +#define Z_SOLO
  31. #include <zlib.h>
  32. #include "misc_z.h"
  33. #include "misc.h"
  34. --- misc/archive.c.old 2012-03-19 08:41:06.478999810 +0100
  35. +++ misc/archive.c 2012-03-19 08:41:24.134741668 +0100
  36. @@ -27,6 +27,7 @@
  37. #include <string.h>
  38. #include <errno.h>
  39. #include <sys/stat.h>
  40. +#define Z_SOLO
  41. #include <zlib.h>
  42. #ifdef HAVE_BYTESWAP_H
  43. #include <byteswap.h>