diff -uNr putty-0.70/unix/uxnet.c putty-0.70.mod/unix/uxnet.c
--- putty-0.70/unix/uxnet.c	2017-07-04 22:30:56.000000000 +0300
+++ putty-0.70.mod/unix/uxnet.c	2018-10-05 20:12:44.594090518 +0300
@@ -30,7 +30,7 @@
 #endif
 
 #ifndef X11_UNIX_PATH
-# define X11_UNIX_PATH "/tmp/.X11-unix/X"
+# define X11_UNIX_PATH "@TERMUX_PREFIX@/tmp/.X11-unix/X"
 #endif
 
 /*