ipt_ACCOUNT: (tomj) support for 2.6.27
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 3 Dec 2008 16:38:38 +0000 (16:38 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 3 Dec 2008 16:38:38 +0000 (16:38 +0000)
linux-2.6/net/ipv4/netfilter/ipt_ACCOUNT.c

index 5d01b96..56b31ad 100644 (file)
 #include <net/udp.h>
 #include <net/tcp.h>
 #include <linux/netfilter_ipv4/ip_tables.h>
-#include <asm/semaphore.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+    #include <linux/semaphore.h>
+#else
+    #include <asm/semaphore.h>
+#endif
+
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/string.h>