From e307ec2c58d6beb0c48d34253c19eac3b9851f07 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 24 Aug 2022 10:17:42 +0100 Subject: [PATCH] OpenBSD: Fix compile with prior --- src/if-bsd.c | 2 +- src/privsep-bsd.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/if-bsd.c b/src/if-bsd.c index 10b0b5f1..62232964 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -918,7 +918,7 @@ if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, const struct rt_msghdr *rtm) static int if_sysctl(struct dhcpcd_ctx *ctx, const int *name, u_int namelen, - void *oldp, size_t *oldlenp, const void *newp, size_t newlen) + void *oldp, size_t *oldlenp, void *newp, size_t newlen) { #if defined(PRIVSEP) && defined(HAVE_CAPSICUM) if (IN_PRIVSEP(ctx)) diff --git a/src/privsep-bsd.c b/src/privsep-bsd.c index f0f91e44..91bd7ceb 100644 --- a/src/privsep-bsd.c +++ b/src/privsep-bsd.c @@ -27,6 +27,7 @@ */ #include +#include #include /* Need these for filtering the ioctls */ -- 2.47.2