opnsense-ports/net/wmnet2/files/patch-config.h
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

23 lines
623 B
C

--- config.h.orig
+++ config.h
@@ -1,6 +1,6 @@
-#if defined (__FreeBSD__) || defined (__OpenBSD__)
+#if defined (__OpenBSD__)
-/* Our only FreeBSD driver, this goes straight into kernel memory
+/* Our only OpenBSD driver(old FreeBSD-4.x driver), this goes straight into kernel memory
* and reads the raw structures from right underneath the kernel using the
* kvm library. This made the code a require a little more thought, but
* the end result is a statistics driver thats faster than the linux ones
@@ -12,7 +12,11 @@
#endif
+#if defined (__FreeBSD__)
+#define USE_SYSCTL
+
+#endif
#ifdef linux