diff options
| author | Roy Marples <roy@marples.name> | 2008-05-19 14:45:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-05-19 14:45:05 +0000 |
| commit | 9934ead60e17bf90ebb780812bbe77916d92c942 (patch) | |
| tree | 431e716718bc59ca1417e358ae83fe2a44c60231 /config.h | |
| parent | 8c6735148fad82183dc4b454186930f266e2aaaf (diff) | |
| download | dhcpcd-9934ead60e17bf90ebb780812bbe77916d92c942.tar.xz | |
Trap some config.h defines if they're in CFLAGS.
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -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 |
