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