diff options
| author | Roy Marples <roy@marples.name> | 2020-02-07 20:56:11 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-02-07 20:56:11 +0000 |
| commit | 91b11be6dc29b3e3ff4ea50dd54e589d30b443c1 (patch) | |
| tree | dc4eb9c280157d4144f047df853423d6fa533191 /src/if-bsd.c | |
| parent | db9b001ddf0ead9adfe1b2022d583cb94a7e2d6b (diff) | |
| download | dhcpcd-91b11be6dc29b3e3ff4ea50dd54e589d30b443c1.tar.xz | |
DragonFlyBSD: Fix compile
Diffstat (limited to 'src/if-bsd.c')
| -rw-r--r-- | src/if-bsd.c | 4 |
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; |
