From: Roy Marples Date: Wed, 24 Aug 2022 09:17:42 +0000 (+0100) Subject: OpenBSD: Fix compile with prior X-Git-Tag: v10.0.0~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e307ec2c58d6beb0c48d34253c19eac3b9851f07;p=thirdparty%2Fdhcpcd.git OpenBSD: Fix compile with prior --- 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 */