ipset: adjust semaphore.h include for kernel >= 2.6.27

As of Linux kernel commit 2351ec533ed0dd56052ab96988d2161d5ecc8ed9,
semaphore.h was moved from asm/ to linux/, which breaks building of
ipset. Add compat glue to ip_set.c to fix building on 2.6.27 an
onwards.
This commit is contained in:
James King
2008-08-26 18:12:33 -07:00
committed by Jan Engelhardt
parent 6737682e82
commit 8fe612e43f

View File

@@ -24,7 +24,11 @@
#include <linux/errno.h>
#include <asm/uaccess.h>
#include <asm/bitops.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
# include <linux/semaphore.h>
#else
# include <asm/semaphore.h>
#endif
#include <linux/spinlock.h>
#include <linux/vmalloc.h>