ndk-patches: Use bin/login in getpwd()
[termux-packages] / ndk-patches / fcntl.h.patch
CommitLineData
29bf3001
FF
1Avoid defining constants which causes at least dpkg build to think that
2sync_file_range(2) is available - which it is not.
3
4diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/fcntl.h ./usr/include/fcntl.h
5--- /home/fornwall/lib/android-ndk/sysroot/usr/include/fcntl.h 2017-06-07 01:07:52.000000000 +0200
6+++ ./usr/include/fcntl.h 2017-06-18 02:03:25.533276409 +0200
7@@ -61,10 +61,6 @@
8 #define SPLICE_F_MORE 4
9 #define SPLICE_F_GIFT 8
10
11-#define SYNC_FILE_RANGE_WAIT_BEFORE 1
12-#define SYNC_FILE_RANGE_WRITE 2
13-#define SYNC_FILE_RANGE_WAIT_AFTER 4
14-
15 int creat(const char*, mode_t);
16
17 #if __ANDROID_API__ >= 21