From: Sebastien Estienne Date: Wed, 12 Oct 2005 14:05:09 +0000 (+0000) Subject: * added a portability fix for IPV6_ADD/DROP_MEMBERSHIP X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=7282cf9916c0cfa15081e14b8bcf62b155182dbd;p=catta * added a portability fix for IPV6_ADD/DROP_MEMBERSHIP git-svn-id: file:///home/lennart/svn/public/avahi/trunk@736 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/socket.c b/avahi-core/socket.c index a4ec682..7e1cdac 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -42,6 +42,19 @@ #include "socket.h" #include "log.h" +/* this is a portability hack */ +#ifndef IPV6_ADD_MEMBERSHIP +#ifdef IPV6_JOIN_GROUP +#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP +#endif +#endif + +#ifndef IPV6_DROP_MEMBERSHIP +#ifdef IPV6_LEAVE_GROUP +#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP +#endif +#endif + static void mdns_mcast_group_ipv4(struct sockaddr_in *ret_sa) { assert(ret_sa);