]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
OpenBSD: Fix compile with prior
authorRoy Marples <roy@marples.name>
Wed, 24 Aug 2022 09:17:42 +0000 (10:17 +0100)
committerRoy Marples <roy@marples.name>
Wed, 24 Aug 2022 09:17:42 +0000 (10:17 +0100)
src/if-bsd.c
src/privsep-bsd.c

index 10b0b5f16684ef2070be5cde7886f1436941f071..62232964c57672e184f81973423e6d8e4cebabc4 100644 (file)
@@ -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))
index f0f91e44dd3ec6081cf123c9474f6ac527a33d70..91bd7ceb3ddce7d79bb72d19f71ae932d86dfdd2 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <sys/ioctl.h>
+#include <sys/types.h>
 #include <sys/sysctl.h>
 
 /* Need these for filtering the ioctls */