termux-packages/packages/c-ares/fix-path-etc-hosts.patch
2020-11-21 21:56:32 +01:00

12 lines
353 B
Diff

--- ./src/lib/ares_private.h.orig 2020-11-21 21:43:33.056110585 +0100
+++ ./src/lib/ares_private.h 2020-11-21 21:45:49.140561610 +0100
@@ -91,7 +91,7 @@
#ifdef ETC_INET
#define PATH_HOSTS "/etc/inet/hosts"
#else
-#define PATH_HOSTS "/etc/hosts"
+#define PATH_HOSTS "@TERMUX_PREFIX@/etc/hosts"
#endif
#endif