summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-05 13:02:32 +0100
committerRoy Marples <roy@marples.name>2020-06-05 13:02:32 +0100
commit2fb47c1e60e66d646036829a02b6be82abe8df7a (patch)
tree3de8de4a9da243464f5639c9c4be024f72c1aa03 /src/if.c
parent8b0d90f51e53d152d5b170db87089e0e15ded3a3 (diff)
downloaddhcpcd-2fb47c1e60e66d646036829a02b6be82abe8df7a.tar.xz
OpenBSD: disable setting resource limits as we have pledge.
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if.c b/src/if.c
index d0012771..69a5003c 100644
--- a/src/if.c
+++ b/src/if.c
@@ -107,7 +107,7 @@ if_opensockets(struct dhcpcd_ctx *ctx)
if (if_opensockets_os(ctx) == -1)
return -1;
-#ifdef PF_LINK
+#ifdef IFLR_ACTIVE
ctx->pf_link_fd = xsocket(PF_LINK, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (ctx->pf_link_fd == -1)
return -1;