build - Fix netgraph
authorMatthew Dillon <dillon@laptop2.(none)>
Sat, 11 Sep 2010 05:41:30 +0000 (22:41 -0700)
committerMatthew Dillon <dillon@laptop2.(none)>
Sat, 11 Sep 2010 05:41:30 +0000 (22:41 -0700)
* Some source files were missing newly required includes for their
  use of the mplock and socketvar2.h inlines.

Reported-by: lentferj
sys/netgraph/ksocket/ng_ksocket.c
sys/netgraph/netgraph/ng_base.c
sys/netgraph/socket/ng_socket.c

index edcddd2..0ada544 100644 (file)
 #include <sys/socket.h>
 #include <sys/socketvar.h>
 #include <sys/socketops.h>
-#include <sys/thread2.h>
 #include <sys/uio.h>
 #include <sys/un.h>
 
+#include <sys/thread2.h>
+#include <sys/socketvar2.h>
+
 #include <netgraph/ng_message.h>
 #include <netgraph/netgraph.h>
 #include <netgraph/ng_parse.h>
index dad0492..c17a4ad 100644 (file)
@@ -62,6 +62,7 @@
 
 #include <sys/thread2.h>
 #include <sys/msgport2.h>
+#include <sys/mplock2.h>
 
 #include <net/netisr.h>
 
index c2d6317..4565405 100644 (file)
 #include <sys/socket.h>
 #include <sys/socketvar.h>
 #include <sys/sysctl.h>
-#include <sys/thread2.h>
 #ifdef NOTYET
 #include <sys/vnode.h>
 #endif
+
+#include <sys/thread2.h>
+#include <sys/socketvar2.h>
+
 #include <netgraph/ng_message.h>
 #include <netgraph/netgraph.h>
 #include "ng_socketvar.h"