]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Trap some config.h defines if they're in CFLAGS.
authorRoy Marples <roy@marples.name>
Mon, 19 May 2008 14:45:05 +0000 (14:45 +0000)
committerRoy Marples <roy@marples.name>
Mon, 19 May 2008 14:45:05 +0000 (14:45 +0000)
config.h

index 1dd3e0adb747af57506c9447b79a5d7d81f14988..b2a5e5d2d1dde3474863456780ba84f83f23ef96 100644 (file)
--- a/config.h
+++ b/config.h
 # define DBDIR                 "/var/db"
 #endif
 
-#define RESOLVFILE             "/etc/resolv.conf"
-#define CONFIGFILE             SYSCONFDIR "/" PACKAGE ".conf"
-#define SCRIPT                 SYSCONFDIR "/" PACKAGE ".sh"
-#define DUIDFILE               SYSCONFDIR "/" PACKAGE ".duid"
-#define LEASEFILE              DBDIR "/" PACKAGE "-%s.lease"
-#define PIDFILE                        RUNDIR "/" PACKAGE "-%s.pid"
+#ifndef CONFIGFILE
+# define CONFIGFILE            SYSCONFDIR "/" PACKAGE ".conf"
+#endif
+#ifndef SCRIPT
+# define SCRIPT                        SYSCONFDIR "/" PACKAGE ".sh"
+#endif
+#ifndef DUIDFILE
+# define DUIDFILE              SYSCONFDIR "/" PACKAGE ".duid"
+#endif
+#ifndef LEASEFILE
+# define LEASEFILE             DBDIR "/" PACKAGE "-%s.lease"
+#endif
+#ifndef PIDFILE
+# define PIDFILE                       RUNDIR "/" PACKAGE "-%s.pid"
+#endif
 
-#define UNCONST(a)     ((void *)(unsigned long)(const void *)(a))
+#define UNCONST(a)             ((void *)(unsigned long)(const void *)(a))
 
 #endif