summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-07-24 19:42:00 +0100
committerRoy Marples <roy@marples.name>2019-07-24 19:42:00 +0100
commit66d36d7edc43d65c2bf27f9ed0bc692c1fa3e6ec (patch)
tree789b7036a97e28991a37e89e57a4aaa51acca807 /src/dhcpcd.c
parentd02f3ad1b28cf3a4e877eb470db47c21a295bd2b (diff)
downloaddhcpcd-66d36d7edc43d65c2bf27f9ed0bc692c1fa3e6ec.tar.xz
Fix build without INET.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index cd0b0df1..31267ab3 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1210,9 +1210,11 @@ dhcpcd_handlehwaddr(struct dhcpcd_ctx *ctx, const char *ifname,
static void
if_reboot(struct interface *ifp, int argc, char **argv)
{
+#ifdef INET
unsigned long long oldopts;
oldopts = ifp->options->options;
+#endif
script_runreason(ifp, "RECONFIGURE");
dhcpcd_initstate1(ifp, argc, argv, 0);
#ifdef INET