summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-02-12 09:25:58 +0000
committerRoy Marples <roy@marples.name>2014-02-12 09:25:58 +0000
commit63d4472589e7862c426942532bd645d2321a6935 (patch)
tree8ceff9f83a9a3bd93939c6b36ed71690d5cc44a0 /dhcpcd.c
parent4eb7b4896f7b4a74da17b1a0acc9119072866c3e (diff)
downloaddhcpcd-63d4472589e7862c426942532bd645d2321a6935.tar.xz
Fix compile on BSD
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index aedeb753..0a684c73 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -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)
{