Fix gcc 3.4 build.
authorEirik Nygaard <eirikn@dragonflybsd.org>
Mon, 9 Aug 2004 14:47:54 +0000 (14:47 +0000)
committerEirik Nygaard <eirikn@dragonflybsd.org>
Mon, 9 Aug 2004 14:47:54 +0000 (14:47 +0000)
__FreeBSD_version is now not defined if __FreeBSD__ is not defined.

Reported by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de> and
             "Martin P. Hellwig" <mhellwig@xs4all.nl>

contrib/ipfilter/kmem.c

index 9bf3e93..2a655af 100644 (file)
@@ -30,7 +30,7 @@
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <net/if.h>
-#if __FreeBSD_version >= 300000
+#if __FreeBSD_version >= 300000 || defined(__DragonFly__)
 # include <net/if_var.h>
 #endif