new ndk patches (#576)
authorVishal Biswas <vshlbiswas@ymail.com>
Wed, 21 Dec 2016 02:51:06 +0000 (08:21 +0530)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 21 Dec 2016 02:51:06 +0000 (03:51 +0100)
map S_I* to S_I*USR counterparts
add dummy syscall.h to redirect to sys/syscall.h

ndk_patches/sys-stat.h.patch [new file with mode: 0644]
ndk_patches/syscall.h.patch [new file with mode: 0644]

diff --git a/ndk_patches/sys-stat.h.patch b/ndk_patches/sys-stat.h.patch
new file mode 100644 (file)
index 0000000..aac8a53
--- /dev/null
@@ -0,0 +1,13 @@
+--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/sys/stat.h        2016-10-12 15:11:58.000000000 +0530
++++ ./usr/include/sys/stat.h   2016-12-03 21:17:42.104829064 +0530
+@@ -136,6 +136,10 @@
+ #define st_mtimensec st_mtime_nsec
+ #define st_ctimensec st_ctime_nsec
++#define S_IREAD S_IRUSR
++#define S_IWRITE S_IWUSR
++#define S_IEXEC S_IXUSR
++
+ #ifdef __USE_BSD
+ /* Permission macros provided by glibc for compatibility with BSDs. */
+ #define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) /* 0777 */
diff --git a/ndk_patches/syscall.h.patch b/ndk_patches/syscall.h.patch
new file mode 100644 (file)
index 0000000..8e9a76e
--- /dev/null
@@ -0,0 +1,4 @@
+--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/syscall.h 2016-12-03 21:40:40.033159200 +0530
++++ ./usr/include/syscall.h    2016-12-03 19:52:16.226951188 +0530
+@@ -1 +0,0 @@
++#include <sys/syscall.h>