add tty-clock package (#481)
[termux-packages] / ndk_patches / linux-fcntl.h.patch
1 diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/linux/fcntl.h ./usr/include/linux/fcntl.h
2 --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/linux/fcntl.h 2014-10-14 22:53:49.000000000 -0400
3 +++ ./usr/include/linux/fcntl.h 2015-10-19 17:17:56.309373308 -0400
4 @@ -41,6 +41,14 @@
5 #define AT_SYMLINK_NOFOLLOW 0x100
6 #define AT_REMOVEDIR 0x200
7 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
8 +
9 +/* Termux patch: This flag is not supported on Android 6.0+, and should not
10 + be needed since there are not setuid binaries. Define AT_EACCESS to 0 to
11 + avoid packages defining their own AT_EACCESS (which e.g. coreutil does)
12 + since that will only result in errors. See:
13 + https://android.googlesource.com/platform/bionic/+/3577825%5E!/ */
14 +#define AT_EACCESS 0
15 +
16 #define AT_SYMLINK_FOLLOW 0x400
17 #define AT_NO_AUTOMOUNT 0x800
18 #define AT_EMPTY_PATH 0x1000