From: Roy Marples Date: Wed, 24 Aug 2022 09:17:42 +0000 (+0100) Subject: OpenBSD: Fix compile with prior X-Git-Tag: v9.5.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d28f447a4b12bd81743159f7aaeb8087baa8b2;p=thirdparty%2Fdhcpcd.git OpenBSD: Fix compile with prior --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 9f764179..4640f0da 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 eee4a398..39cb223c 100644 --- a/src/privsep-bsd.c +++ b/src/privsep-bsd.c @@ -27,6 +27,7 @@ */ #include +#include #include /* Need these for filtering the ioctls */