| 1 | diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/linux/fcntl.h ./usr/include/linux/fcntl.h |
| 2 | --- /home/fornwall/lib/android-ndk/sysroot/usr/include/linux/fcntl.h 2017-11-09 09:57:12.000000000 +0100 |
| 3 | +++ ./usr/include/linux/fcntl.h 2017-11-15 11:49:10.709710452 +0100 |
| 4 | @@ -40,6 +40,12 @@ |
| 5 | #define DN_ATTRIB 0x00000020 |
| 6 | #define DN_MULTISHOT 0x80000000 |
| 7 | #define AT_FDCWD - 100 |
| 8 | +/* Termux patch: This flag is not supported on Android 6.0+, and should not |
| 9 | + be needed since there are not setuid binaries. Define AT_EACCESS to 0 to |
| 10 | + avoid packages defining their own AT_EACCESS (which e.g. coreutil does) |
| 11 | + since that will only result in errors. See: |
| 12 | + https://android.googlesource.com/platform/bionic/+/3577825%5E!/ */ |
| 13 | +#define AT_EACCESS 0 |
| 14 | #define AT_SYMLINK_NOFOLLOW 0x100 |
| 15 | #define AT_REMOVEDIR 0x200 |
| 16 | #define AT_SYMLINK_FOLLOW 0x400 |