From 7282cf9916c0cfa15081e14b8bcf62b155182dbd Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Wed, 12 Oct 2005 14:05:09 +0000 Subject: [PATCH] * 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 --- avahi-core/socket.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); -- 2.39.5