X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/d3e5452e3ee76b8c454bc018f03d53ec567c49de..3c8a8000928879602594476498365b99d8a923b1:/ndk-patches/paths.h.patch diff --git a/ndk-patches/paths.h.patch b/ndk-patches/paths.h.patch index b1731c2c..d4cc3fe8 100644 --- a/ndk-patches/paths.h.patch +++ b/ndk-patches/paths.h.patch @@ -1,11 +1,13 @@ diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/paths.h ./usr/include/paths.h ---- /home/fornwall/lib/android-ndk/sysroot/usr/include/paths.h 2017-06-07 01:07:52.000000000 +0200 -+++ ./usr/include/paths.h 2017-06-18 01:49:55.374140031 +0200 -@@ -34,13 +34,19 @@ +--- /home/fornwall/lib/android-ndk/sysroot/usr/include/paths.h 2017-11-09 09:57:12.000000000 +0100 ++++ ./usr/include/paths.h 2017-11-15 11:51:24.456129565 +0100 +@@ -34,15 +34,19 @@ #include +-#ifndef _PATH_BSHELL -#define _PATH_BSHELL "/system/bin/sh" +-#endif +#define _PATH_BSHELL "@TERMUX_PREFIX@/bin/sh" #define _PATH_CONSOLE "/dev/console" -#define _PATH_DEFPATH "/sbin:/system/sbin:/system/bin:/system/xbin:/vendor/bin:/vendor/xbin" @@ -16,10 +18,10 @@ diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/paths.h ./usr/incl #define _PATH_MOUNTED "/proc/mounts" #define _PATH_TTY "/dev/tty" -+#define _PATH_STDPATH _PATH_DEFPATH -+#define _PATH_TMP "@TERMUX_PREFIX@/tmp/" -+#define _PATH_VARDB "@TERMUX_PREFIX@/var/db/" -+#define _PATH_VARRUN "@TERMUX_PREFIX@/var/run/" -+#define _PATH_VARTMP "@TERMUX_PREFIX@/var/tmp/" ++#define _PATH_STDPATH _PATH_DEFPATH ++#define _PATH_TMP "@TERMUX_PREFIX@/tmp/" ++#define _PATH_VARDB "@TERMUX_PREFIX@/var/db/" ++#define _PATH_VARRUN "@TERMUX_PREFIX@/var/run/" ++#define _PATH_VARTMP "@TERMUX_PREFIX@/var/tmp/" + #endif /* !_PATHS_H_ */