--- a/shairport.c
+++ b/shairport.c
@@ -945,7 +945,7 @@
 #ifdef USE_CUSTOM_PID_DIR
   char *use_this_pid_dir = PIDDIR;
 #else
-  char *use_this_pid_dir = "/var/run/shairport-sync";
+  char *use_this_pid_dir = "@TERMUX_PREFIX@/var/run/shairport-sync";
 #endif
   // debug(1,"config.piddir \"%s\".",config.piddir);
   if (config.piddir)
