--- src/config.h	2006-01-22 14:12:15.000000000 +0100
+++ src/config.h.new	2006-02-11 13:51:31.000000000 +0100
@@ -31,14 +31,22 @@
 #else
 #  define RESOLVFILE "/etc/resolv.conf"
 #endif
-#define RUNFILE "/var/run/dnsmasq.pid"
+#ifdef __APPLE__
+#  define RUNFILE "__PREFIX__/var/run/dnsmasq.pid"
+#else
+#  define RUNFILE "/var/run/dnsmasq.pid"
+#endif
 #if defined(__FreeBSD__) || defined (__OpenBSD__)
 #   define LEASEFILE "/var/db/dnsmasq.leases"
+#elif __APPLE__
+#   define LEASEFILE "__PREFIX__/var/db/dnsmasq.leases"
 #else
 #   define LEASEFILE "/var/lib/misc/dnsmasq.leases"
 #endif
 #if defined(__FreeBSD__)
 #   define CONFFILE "/usr/local/etc/dnsmasq.conf"
+#elif __APPLE__
+#   define CONFFILE "__PREFIX__/etc/dnsmasq.conf"
 #else
 #   define CONFFILE "/etc/dnsmasq.conf"
 #endif
