[PATCH] xtables-addons: ipset: fix semaphore.h include As of 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+ Signed-off-by: James King <t.james.king@xxxxxxxxx> --- extensions/ipset/ip_set.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/extensions/ipset/ip_set.c b/extensions/ipset/ip_set.c index 8be9274..21e62bd 100644 --- a/extensions/ipset/ip_set.c +++ b/extensions/ipset/ip_set.c @@ -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 <asm/semaphore.h> +#else +#include <linux/semaphore.h> +#endif #include <linux/spinlock.h> #include <linux/vmalloc.h> -- 1.5.5.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html