diff -u -r ../mc-4.8.11/lib/global.h ./lib/global.h
--- ../mc-4.8.11/lib/global.h	2013-10-15 11:52:41.000000000 +0200
+++ ./lib/global.h	2014-02-07 02:32:06.000000000 +0100
@@ -129,7 +129,7 @@
 #define PATH_SEP '/'
 #define PATH_SEP_STR "/"
 #define PATH_ENV_SEP ':'
-#define TMPDIR_DEFAULT "/tmp"
+#define TMPDIR_DEFAULT "@TERMUX_PREFIX@/tmp"
 #define SCRIPT_SUFFIX ""
 #define get_default_editor() "vi"
 #define OS_SORT_CASE_SENSITIVE_DEFAULT 1
