summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-19 14:45:05 +0000
committerRoy Marples <roy@marples.name>2008-05-19 14:45:05 +0000
commit9934ead60e17bf90ebb780812bbe77916d92c942 (patch)
tree431e716718bc59ca1417e358ae83fe2a44c60231 /config.h
parent8c6735148fad82183dc4b454186930f266e2aaaf (diff)
downloaddhcpcd-9934ead60e17bf90ebb780812bbe77916d92c942.tar.xz
Trap some config.h defines if they're in CFLAGS.
Diffstat (limited to 'config.h')
-rw-r--r--config.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/config.h b/config.h
index 1dd3e0ad..b2a5e5d2 100644
--- a/config.h
+++ b/config.h
@@ -70,13 +70,22 @@
# 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