1
0

0003-no-io64.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c
  2. index 7f5c191..d42e050 100644
  3. --- a/contrib/minizip/ioapi.c
  4. +++ b/contrib/minizip/ioapi.c
  5. @@ -17,8 +17,8 @@
  6. #if defined(__APPLE__) || defined(IOAPI_NO_64)
  7. // In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions
  8. #define FOPEN_FUNC(filename, mode) fopen(filename, mode)
  9. -#define FTELLO_FUNC(stream) ftello(stream)
  10. -#define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
  11. +#define FTELLO_FUNC(stream) ftell(stream)
  12. +#define FSEEKO_FUNC(stream, offset, origin) fseek(stream, offset, origin)
  13. #else
  14. #define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
  15. #define FTELLO_FUNC(stream) ftello64(stream)
  16. diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
  17. index 3d65401..a1269ea 100644
  18. --- a/contrib/minizip/miniunz.c
  19. +++ b/contrib/minizip/miniunz.c
  20. @@ -33,9 +33,9 @@
  21. #define FTELLO_FUNC(stream) ftello(stream)
  22. #define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
  23. #else
  24. -#define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
  25. -#define FTELLO_FUNC(stream) ftello64(stream)
  26. -#define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
  27. +#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
  28. +#define FTELLO_FUNC(stream) ftell(stream)
  29. +#define FSEEKO_FUNC(stream, offset, origin) fseek(stream, offset, origin)
  30. #endif
  31. diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c
  32. index 4288962..02267fb 100644
  33. --- a/contrib/minizip/minizip.c
  34. +++ b/contrib/minizip/minizip.c
  35. @@ -34,9 +34,9 @@
  36. #define FTELLO_FUNC(stream) ftello(stream)
  37. #define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
  38. #else
  39. -#define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
  40. -#define FTELLO_FUNC(stream) ftello64(stream)
  41. -#define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
  42. +#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
  43. +#define FTELLO_FUNC(stream) ftell(stream)
  44. +#define FSEEKO_FUNC(stream, offset, origin) fseek(stream, offset, origin)
  45. #endif