0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 15:42:17 +00:00
termux-packages/packages/c-ares/0002-fix-path-etc-hosts.patch
2023-11-15 12:37:05 +08:00

17 lines
379 B
Diff

--- a/src/lib/ares_private.h
+++ b/src/lib/ares_private.h
@@ -101,11 +101,11 @@
#else
-# define PATH_RESOLV_CONF "/etc/resolv.conf"
+# define PATH_RESOLV_CONF "@TERMUX_PREFIX@/etc/resolv.conf"
# ifdef ETC_INET
# define PATH_HOSTS "/etc/inet/hosts"
# else
-# define PATH_HOSTS "/etc/hosts"
+# define PATH_HOSTS "@TERMUX_PREFIX@/etc/hosts"
# endif
#endif