summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-02-07 20:56:11 +0000
committerRoy Marples <roy@marples.name>2020-02-07 20:56:11 +0000
commitfdbf534d5155b208ee2f033659acb756855e193f (patch)
treedc4eb9c280157d4144f047df853423d6fa533191 /src/if-bsd.c
parent57ab5f7c51248ddb529ac28617082f306418065c (diff)
downloaddhcpcd-fdbf534d5155b208ee2f033659acb756855e193f.tar.xz
DragonFlyBSD: Fix compile
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index f56a3180..76ba114e 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -218,7 +218,7 @@ if_closesockets_os(struct dhcpcd_ctx *ctx)
ctx->priv = NULL;
}
-#ifdef SIOCALIFADDR /*NetBSD */
+#if defined(SIOCALIFADDR) && defined(IFLR_ACTIVE) /*NetBSD */
static int
if_ioctllink(struct dhcpcd_ctx *ctx, unsigned long req, void *data, size_t len)
{
@@ -250,7 +250,7 @@ if_setmac(struct interface *ifp, void *mac, uint8_t maclen)
return -1;
}
-#ifdef SIOCALIFADDR /*NetBSD */
+#if defined(SIOCALIFADDR) && defined(IFLR_ACTIVE) /*NetBSD */
struct if_laddrreq iflr = { .flags = IFLR_ACTIVE };
struct sockaddr_dl *sdl = satosdl(&iflr.addr);
int retval;