diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/minizip/android-fileapi.patch | |
Diffstat (limited to 'vcpkg/ports/minizip/android-fileapi.patch')
| -rw-r--r-- | vcpkg/ports/minizip/android-fileapi.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/minizip/android-fileapi.patch b/vcpkg/ports/minizip/android-fileapi.patch new file mode 100644 index 0000000..36171d0 --- /dev/null +++ b/vcpkg/ports/minizip/android-fileapi.patch @@ -0,0 +1,17 @@ +diff --git a/contrib/minizip/ioapi.h b/contrib/minizip/ioapi.h +index c588a18..b5395e2 100644 +--- a/contrib/minizip/ioapi.h ++++ b/contrib/minizip/ioapi.h +@@ -21,6 +21,12 @@ + #ifndef _ZLIBIOAPI64_H + #define _ZLIBIOAPI64_H + ++#if defined(__ANDROID_API__) && __ANDROID_API__ < 24 ++ // Cf. https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md#32_bit-and ++ // stdio functions for off_t are incomplete. ++ #define USE_FILE32API ++#endif ++ + #if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__)) + + // Linux needs this to support file operation on files larger then 4+GB |