--- a/src/update.h
+++ b/src/update.h
@@ -2,7 +2,7 @@
 
 #include <curl/curl.h>
 
-#define PACMANCONFIG "/etc/pacman.conf"
+#define PACMANCONFIG "@TERMUX_PREFIX@/etc/pacman.conf"
 
 struct config_t;
 struct repovec_t;