diff -uNr geany-1.33/ctags/main/routines.c geany-1.33.mod/ctags/main/routines.c
--- geany-1.33/ctags/main/routines.c	2018-02-25 15:02:21.000000000 +0200
+++ geany-1.33.mod/ctags/main/routines.c	2018-06-23 23:56:00.892106491 +0300
@@ -79,7 +79,7 @@
 *   MACROS
 */
 #ifndef TMPDIR
-# define TMPDIR "/tmp"
+# define TMPDIR "@TERMUX_PREFIX@/tmp"
 #endif
 
 /*  File type tests.
