From 5e385c6adf09590551bfb206a5df926026da8b26 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 11 Apr 2016 06:16:15 -0400 Subject: [PATCH] ndk_patches: Patch paths.h, _PATH_TMP used by tmux --- ndk_patches/paths.h.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ndk_patches/paths.h.patch diff --git a/ndk_patches/paths.h.patch b/ndk_patches/paths.h.patch new file mode 100644 index 000000000..93cb2fa16 --- /dev/null +++ b/ndk_patches/paths.h.patch @@ -0,0 +1,17 @@ +diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/paths.h ./usr/include/paths.h +--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/paths.h 2016-03-03 16:54:24.000000000 -0500 ++++ ./usr/include/paths.h 2016-04-11 03:56:22.460545708 -0400 +@@ -66,9 +66,9 @@ + + /* Provide trailing slash, since mostly used for building pathnames. */ + #define _PATH_DEV "/dev/" +-#define _PATH_TMP "/tmp/" +-#define _PATH_VARDB "/var/db/" +-#define _PATH_VARRUN "/var/run/" +-#define _PATH_VARTMP "/var/tmp/" ++#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_ */