Include sys/mutex.h from netinet/in_pcb.h. Struct mutex will be
authorbluhm <bluhm@openbsd.org>
Sun, 20 Mar 2022 19:16:29 +0000 (19:16 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 20 Mar 2022 19:16:29 +0000 (19:16 +0000)
needed to make inpcb in kernel MP safe.  To build sysctl and libkvm
based programs, we have to export it to userland.
OK claudio@

sys/netinet/in_pcb.h

index 1f72d73..35c7d9e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: in_pcb.h,v 1.125 2022/03/14 22:38:43 tb Exp $ */
+/*     $OpenBSD: in_pcb.h,v 1.126 2022/03/20 19:16:29 bluhm Exp $      */
 /*     $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $     */
 
 /*
@@ -65,6 +65,7 @@
 #define _NETINET_IN_PCB_H_
 
 #include <sys/queue.h>
+#include <sys/mutex.h>
 #include <sys/refcnt.h>
 #include <netinet/ip6.h>
 #include <netinet6/ip6_var.h>