summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-30 14:50:25 +0000
committerRoy Marples <roy@marples.name>2020-05-30 14:50:25 +0000
commitc3358e3e0c8c19e5a9110140dd2b099a612afd43 (patch)
tree94992860dcb6370c37ec158d7180649c18a2d95c /src/ipv6.c
parent422de9e23a64eef17d9049c16925677fca64ad9f (diff)
downloaddhcpcd-c3358e3e0c8c19e5a9110140dd2b099a612afd43.tar.xz
Fix compile with inet or inet6 disabled
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index ef4b7164..13e6c117 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -594,6 +594,7 @@ static void
ipv6_deletedaddr(struct ipv6_addr *ia)
{
+#ifdef DHCP6
#ifdef PRIVSEP
if (!(ia->iface->ctx->options & DHCPCD_MASTER))
ps_inet_closedhcp6(ia);
@@ -607,6 +608,9 @@ ipv6_deletedaddr(struct ipv6_addr *ia)
if (ia->delegating_prefix != NULL)
ia->delegating_prefix->flags &= ~IPV6_AF_NOREJECT;
#endif
+#else
+ UNUSED(ia);
+#endif
}
void