From: octo Date: Fri, 10 Mar 2006 11:15:18 +0000 (+0000) Subject: Assure that `IPV6_ADD_MEMBERSHIP' is defined. X-Git-Tag: liboping-0.1.0~178 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9cbf75d8eda02538028e5e967bca2787deb4ace6;p=collectd.git Assure that `IPV6_ADD_MEMBERSHIP' is defined. --- diff --git a/src/network.c b/src/network.c index cf0a0a38..1ecb9d74 100644 --- a/src/network.c +++ b/src/network.c @@ -39,6 +39,14 @@ /* 1500 - 40 - 8 = Ethernet packet - IPv6 header - UDP header */ /* #define BUFF_SIZE 1452 */ +#ifndef IPV6_ADD_MEMBERSHIP +# ifdef IPV6_JOIN_GROUP +# define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP +# else +# error "Neither IP_ADD_MEMBERSHIP nor IPV6_JOIN_GROUP is defined" +# endif +#endif /* !IP_ADD_MEMBERSHIP */ + #define BUFF_SIZE 4096 #ifdef HAVE_LIBRRD