dnsutils: fix path to 'resolv.conf' in liblwres (#1616)
[termux-packages] / packages / ldns / fix-hardcoded-paths.patch
CommitLineData
78837d49
LP
1diff -uNr ldns-1.7.0/ldns/resolver.h ldns-1.7.0.mod/ldns/resolver.h
2--- ldns-1.7.0/ldns/resolver.h 2016-12-20 12:48:22.000000000 +0200
3+++ ldns-1.7.0.mod/ldns/resolver.h 2017-09-12 12:05:37.802990331 +0300
4@@ -33,9 +33,9 @@
5 #endif
6
7 /** Default location of the resolv.conf file */
8-#define LDNS_RESOLV_CONF "/etc/resolv.conf"
9+#define LDNS_RESOLV_CONF "@TERMUX_PREFIX@/etc/resolv.conf"
10 /** Default location of the hosts file */
11-#define LDNS_RESOLV_HOSTS "/etc/hosts"
12+#define LDNS_RESOLV_HOSTS "@TERMUX_PREFIX@/etc/hosts"
13
14 #define LDNS_RESOLV_KEYWORD -1
15 #define LDNS_RESOLV_DEFDOMAIN 0