svn commit: r243920 - projects/bpfjit/sys/net

Jung-uk Kim jkim at FreeBSD.org
Thu Dec 6 00:06:15 UTC 2012


Author: jkim
Date: Thu Dec  6 00:06:15 2012
New Revision: 243920
URL: http://svnweb.freebsd.org/changeset/base/243920

Log:
  Slightly reduce diff against the original NetBSD version.

Modified:
  projects/bpfjit/sys/net/bpfjit.h

Modified: projects/bpfjit/sys/net/bpfjit.h
==============================================================================
--- projects/bpfjit/sys/net/bpfjit.h	Wed Dec  5 23:51:28 2012	(r243919)
+++ projects/bpfjit/sys/net/bpfjit.h	Thu Dec  6 00:06:15 2012	(r243920)
@@ -34,16 +34,22 @@
 #ifndef _NET_BPFJIT_H_
 #define _NET_BPFJIT_H_
 
-#ifdef _KERNEL
-#include <sys/types.h>
-
-extern int bpfjit_disable;
-#else
+#ifndef _KERNEL
 #include <stddef.h>
 #include <stdint.h>
 #endif
 
+#include <sys/types.h>
+
+#ifdef __linux
+#include <pcap-bpf.h>
+#else
 #include <net/bpf.h>
+#endif
+
+#ifdef _KERNEL
+extern int bpfjit_disable;
+#endif
 
 /*
  * RETURN value and arguments of a function generated by sljit have sljit_uw


More information about the svn-src-projects mailing list