termux-packages/packages/vim/src-os_unix.h.patch

23 lines
496 B
Diff
Raw Normal View History

--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -138,6 +138,10 @@
#include <signal.h>
+#ifdef __ANDROID__
+#undef SIGTSTP
+#endif
+
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
# define MAXNAMLEN DIRSIZ
#endif
@@ -356,7 +360,7 @@
2016-01-05 03:08:49 +01:00
# ifdef VMS
# define DFLT_DIR "./,sys$login:,tmp:"
# else
2019-12-20 18:28:48 +01:00
-# define DFLT_DIR ".,~/tmp,/var/tmp,/tmp" // default for 'directory'
+# define DFLT_DIR ".,~/tmp,@TERMUX_PREFIX@/tmp,@TERMUX_PREFIX@/var/tmp" // default for 'directory'
2015-09-15 02:24:25 +02:00
# endif
#endif
2016-01-05 03:08:49 +01:00