serf: Fix building with unified headers
[termux-packages] / ndk_patches / sys-stat.h.patch
1 --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/sys/stat.h 2016-10-12 15:11:58.000000000 +0530
2 +++ ./usr/include/sys/stat.h 2016-12-03 21:17:42.104829064 +0530
3 @@ -136,6 +136,10 @@
4 #define st_mtimensec st_mtime_nsec
5 #define st_ctimensec st_ctime_nsec
6
7 +#define S_IREAD S_IRUSR
8 +#define S_IWRITE S_IWUSR
9 +#define S_IEXEC S_IXUSR
10 +
11 #ifdef __USE_BSD
12 /* Permission macros provided by glibc for compatibility with BSDs. */
13 #define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) /* 0777 */