Re: [PATCH] xtables-addons: ipset: fix semaphore.h include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 2008-08-26 21:12, James King wrote:

>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+

Ok, applied.
Let Jozsef know of this one so he can integrate it too.

>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
>

--
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

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux