diff options
| author | Roy Marples <roy@marples.name> | 2014-02-12 09:25:58 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-02-12 09:25:58 +0000 |
| commit | 63d4472589e7862c426942532bd645d2321a6935 (patch) | |
| tree | 8ceff9f83a9a3bd93939c6b36ed71690d5cc44a0 /dhcpcd.c | |
| parent | 4eb7b4896f7b4a74da17b1a0acc9119072866c3e (diff) | |
| download | dhcpcd-63d4472589e7862c426942532bd645d2321a6935.tar.xz | |
Fix compile on BSD
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1115,11 +1115,13 @@ main(int argc, char **argv) pidfile = NULL; ifo = NULL; ctx.cffile = CONFIG; - ctx.pid_fd = -1; - ctx.control_fd = -1; + ctx.pid_fd = ctx.control_fd = ctx.link_fd = -1; +#ifdef PLUGIN_DEV ctx.dev_fd = -1; - ctx.link_fd = -1; +#endif +#ifdef INET ctx.udp_fd = -1; +#endif i = 0; while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1) { |
