termux-packages/packages/c-ares/fix-path-etc-hosts.patch

13 lines
432 B
Diff
Raw Normal View History

2017-09-12 12:30:39 +02:00
diff -uNr c-ares-1.13.0/ares_private.h c-ares-1.13.0.mod/ares_private.h
--- c-ares-1.13.0/ares_private.h 2017-06-16 15:53:03.000000000 +0300
+++ c-ares-1.13.0.mod/ares_private.h 2017-09-12 11:24:17.332992105 +0300
@@ -84,7 +84,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