tor: update from 0.3.0.9 to 0.3.0.10
[termux-packages] / ndk-patches / sys-cdefs.h.patch
1 diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/cdefs.h ./usr/include/sys/cdefs.h
2 --- /home/fornwall/lib/android-ndk/sysroot/usr/include/sys/cdefs.h 2017-06-20 17:41:56.000000000 +0200
3 +++ ./usr/include/sys/cdefs.h 2017-07-09 23:37:26.453911992 +0200
4 @@ -237,9 +237,15 @@
5 /* _FILE_OFFSET_BITS 64 support. */
6 #if !defined(__LP64__) && defined(_FILE_OFFSET_BITS)
7 #if _FILE_OFFSET_BITS == 64
8 +#ifdef TERMUX_EXPOSE_FILE_OFFSET64
9 +/* Using _FILE_OFFSET_BITS=64 does not work very well on Android
10 + * and can cause problems when mixing libraries, which is why
11 + * Termux hides away this unless TERMUX_EXPOSE_FILE_OFFSET64
12 + * is defined. */
13 #define __USE_FILE_OFFSET64 1
14 #endif
15 #endif
16 +#endif
17
18 #define __BIONIC__ 1
19 #include <android/api-level.h>