ipset: bool type always overridden

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

 




>+++ b/extensions/ipset/ip_set_setlist.c
>+#ifndef bool
>+#define bool   int
>+#endif

Is wrong too, since bool is not a define in the first place. If things 
go bad, it causes external functions to suddenly be accessed with a 
different ABI than they actually have.

You will need to check for 2.6.18 instead:

#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)
typedef _Bool bool;
enum { false = 0, true = 1, };
#endif
	—from xtables-addons/extensions/compat_xtnu.h
--
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