termux-packages/ndk-patches/paths.h.patch
2020-07-09 18:23:33 +02:00

21 lines
768 B
Diff

--- ./usr/include/paths.h.orig 2020-07-09 16:14:26.230567649 +0000
+++ ./usr/include/paths.h 2020-07-09 16:15:16.387109516 +0000
@@ -40,7 +40,7 @@
#ifndef _PATH_BSHELL
/** Path to the default system shell. Historically the 'B' was to specify the Bourne shell. */
-#define _PATH_BSHELL "/system/bin/sh"
+#define _PATH_BSHELL "@TERMUX_PREFIX@/bin/sh"
#endif
/** Path to the system console. */
@@ -63,3 +63,8 @@
/** Path to the calling process' tty. */
#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/"