aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/civetweb/fix-fseeko.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/civetweb/fix-fseeko.patch')
-rw-r--r--vcpkg/ports/civetweb/fix-fseeko.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/civetweb/fix-fseeko.patch b/vcpkg/ports/civetweb/fix-fseeko.patch
new file mode 100644
index 0000000..3e2f585
--- /dev/null
+++ b/vcpkg/ports/civetweb/fix-fseeko.patch
@@ -0,0 +1,17 @@
+diff --git a/src/civetweb.c b/src/civetweb.c
+index 9e321ed..0f11407 100644
+--- a/src/civetweb.c
++++ b/src/civetweb.c
+@@ -892,6 +892,12 @@ typedef unsigned short int in_port_t;
+ #if defined(USE_X_DOM_SOCKET)
+ #include <sys/un.h>
+ #endif
++
++#if defined(__ANDROID_API__) && __ANDROID_API__ < 24
++ // Cf. https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md#32_bit-and
++ #define fseeko fseek
++#endif
++
+ #endif
+
+ #define vsnprintf_impl vsnprintf