pkgsrc/net/wmnet/patches/patch-ab
2006-03-23 17:36:16 +00:00

29 lines
798 B
Text

$NetBSD: patch-ab,v 1.3 2006/03/23 17:36:16 joerg Exp $
--- config.h.orig Fri May 5 02:34:29 2000
+++ config.h Mon Jul 8 16:44:18 2002
@@ -1,4 +1,4 @@
-#if defined (__FreeBSD__) || defined (__OpenBSD__)
+#if defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined(__DragonFly__)
/* Our only FreeBSD driver, this goes straight into kernel memory
* and reads the raw structures from right underneath the kernel using the
@@ -13,7 +13,18 @@
#endif
+#if defined (sun)
+/*
+ * This driver uses the Solaris kstat(3) mechanism to acquire interface
+ * statistics. It's a lot more elegant than grovelling through kernel
+ * memory.
+ */
+#define USE_KSTAT
+
+#endif
+
+
#ifdef linux
/* this driver uses a socket ioctl() to get stats from a ppp type interface