serf: Fix building with unified headers
[termux-packages] / ndk_patches / paths.h.patch
CommitLineData
a5b4ca0c
VB
1--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm64/usr/include/paths.h 2016-10-09 16:37:54.394746195 +0530
2+++ ./usr/include/paths.h 2016-10-21 23:28:38.689411903 +0530
c3c36e92
FF
3@@ -33,12 +33,12 @@
4 #define _PATHS_H_
5
6 /* Default search path. */
7-#define _PATH_DEFPATH "/usr/bin:/bin"
8+#define _PATH_DEFPATH "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets"
9 /* All standard utilities path. */
10 #define _PATH_STDPATH \
11- "/usr/bin:/bin:/usr/sbin:/sbin"
12+ _PATH_DEFPATH
13
14-#define _PATH_BSHELL "/system/bin/sh"
15+#define _PATH_BSHELL "@TERMUX_PREFIX@/bin/sh"
16 #define _PATH_CONSOLE "/dev/console"
17 #define _PATH_CSHELL "/bin/csh"
18 #define _PATH_DEVDB "/var/run/dev.db"
a5b4ca0c
VB
19@@ -51,7 +51,7 @@
20 #define _PATH_MAN "/usr/share/man"
21 #define _PATH_MEM "/dev/mem"
22 #define _PATH_MNTTAB "/etc/fstab"
23-#define _PATH_MOUNTED "/etc/mtab"
24+#define _PATH_MOUNTED "/proc/mounts"
25 #define _PATH_NOLOGIN "/etc/nologin"
26 #define _PATH_PRESERVE "/var/lib"
27 #define _PATH_RWHODIR "/var/spool/rwho"
5e385c6a
FF
28@@ -66,9 +66,9 @@
29
30 /* Provide trailing slash, since mostly used for building pathnames. */
31 #define _PATH_DEV "/dev/"
32-#define _PATH_TMP "/tmp/"
33-#define _PATH_VARDB "/var/db/"
34-#define _PATH_VARRUN "/var/run/"
35-#define _PATH_VARTMP "/var/tmp/"
36+#define _PATH_TMP "@TERMUX_PREFIX@/tmp/"
37+#define _PATH_VARDB "@TERMUX_PREFIX@/var/db/"
38+#define _PATH_VARRUN "@TERMUX_PREFIX@/var/run/"
39+#define _PATH_VARTMP "@TERMUX_PREFIX@/var/tmp/"
40
41 #endif /* !_PATHS_H_ */