Ticket #15551: patch-config.h.diff

File patch-config.h.diff, 859 bytes (added by dgilman (David Gilman), 16 years ago)

patch for an include file

  • src/config.h

    old new  
    3636#else
    3737#  define RESOLVFILE "/etc/resolv.conf"
    3838#endif
    39 #define RUNFILE "/var/run/dnsmasq.pid"
     39#ifdef __APPLE__
     40#  define RUNFILE "__PREFIX__/var/run/dnsmasq.pid"
     41#else
     42#  define RUNFILE "/var/run/dnsmasq.pid"
     43#endif
    4044#if defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__DragonFly__)
    4145#   define LEASEFILE "/var/db/dnsmasq.leases"
     46#elif __APPLE__
     47#   define LEASEFILE "__PREFIX__/var/db/dnsmasq.leases"
    4248#elif defined(__sun__)
    4349#   define LEASEFILE "/var/cache/dnsmasq.leases"
    4450#else
     
    4652#endif
    4753#if defined(__FreeBSD__)
    4854#   define CONFFILE "/usr/local/etc/dnsmasq.conf"
     55#elif __APPLE__
     56#   define CONFFILE "__PREFIX__/etc/dnsmasq.conf"
    4957#else
    5058#   define CONFFILE "/etc/dnsmasq.conf"
    5159#endif