gegl: Update from 0.3.32 to 0.3.34
[termux-packages] / ndk-patches / sys-cdefs.h.patch
CommitLineData
2173f730 1diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/cdefs.h ./usr/include/sys/cdefs.h
829516f1
FF
2--- /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/cdefs.h 2017-07-21 11:04:10.000000000 +0200
3+++ ./usr/include/sys/cdefs.h 2017-08-07 22:50:14.093361547 +0200
4@@ -235,7 +235,11 @@
5 #endif
6
4e9a8b45 7 /* _FILE_OFFSET_BITS 64 support. */
829516f1
FF
8-#if !defined(__LP64__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
9+/* Using _FILE_OFFSET_BITS=64 does not work well on Android
4e9a8b45
FF
10+ * and can cause problems when mixing libraries, which is why
11+ * Termux hides away this unless TERMUX_EXPOSE_FILE_OFFSET64
12+ * is defined. */
829516f1 13+#if !defined(__LP64__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(TERMUX_EXPOSE_FILE_OFFSET64)
4e9a8b45 14 #define __USE_FILE_OFFSET64 1
829516f1
FF
15 #define __RENAME_IF_FILE_OFFSET64(func) __RENAME(func)
16 #else