]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DragonFlyBSD: Fix compile
authorRoy Marples <roy@marples.name>
Fri, 7 Feb 2020 20:56:11 +0000 (20:56 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Feb 2020 20:56:11 +0000 (20:56 +0000)
src/if-bsd.c

index f56a3180ced326a7ed6651e3990f369fc1c2db54..76ba114e34e23be6d83312fb0bf9671ad2e563c4 100644 (file)
@@ -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;