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
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
13 #define __USE_FILE_OFFSET64 1
19 #include <android/api-level.h>