Ticket #15551: patch-config.h.3.diff
File patch-config.h.3.diff, 1.5 KB (added by davidgilman1+macports@…, 16 years ago) |
---|
-
./src/config.h
old new 32 32 #define HOSTSFILE "/etc/hosts" 33 33 #define ETHERSFILE "/etc/ethers" 34 34 #ifdef __uClinux__ 35 # define RESOLVFILE " /etc/config/resolv.conf"35 # define RESOLVFILE "__PREFIX__/etc/config/resolv.conf" 36 36 #else 37 # define RESOLVFILE "/etc/resolv.conf" 37 # define RESOLVFILE "__PREFIX__/etc/resolv.conf" 38 #endif 39 #ifdef __APPLE__ 40 # define RUNFILE "__PREFIX__/var/run/dnsmasq.pid" 41 #else 42 # define RUNFILE "__PREFIX__/var/run/dnsmasq.pid" 38 43 #endif 39 #define RUNFILE "/var/run/dnsmasq.pid"40 44 #if defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__DragonFly__) 41 # define LEASEFILE "/var/db/dnsmasq.leases" 45 # define LEASEFILE "__PREFIX__/var/db/dnsmasq.leases" 46 #elif __APPLE__ 47 # define LEASEFILE "__PREFIX__/var/db/dnsmasq.leases" 42 48 #elif defined(__sun__) 43 # define LEASEFILE " /var/cache/dnsmasq.leases"49 # define LEASEFILE "__PREFIX__/var/cache/dnsmasq.leases" 44 50 #else 45 # define LEASEFILE " /var/lib/misc/dnsmasq.leases"51 # define LEASEFILE "__PREFIX__/var/lib/misc/dnsmasq.leases" 46 52 #endif 47 53 #if defined(__FreeBSD__) 48 # define CONFFILE "/usr/local/etc/dnsmasq.conf" 54 # define CONFFILE "__PREFIX__/usr/local/etc/dnsmasq.conf" 55 #elif __APPLE__ 56 # define CONFFILE "__PREFIX__/etc/dnsmasq.conf" 49 57 #else 50 # define CONFFILE " /etc/dnsmasq.conf"58 # define CONFFILE "__PREFIX__/etc/dnsmasq.conf" 51 59 #endif 52 60 #define DEFLEASE 3600 /* default lease time, 1 hour */ 53 61 #define CHUSER "nobody"