]> git.meshlink.io Git - catta/commitdiff
* added a portability fix for IPV6_ADD/DROP_MEMBERSHIP
authorSebastien Estienne <sebastien.estienne@gmail.com>
Wed, 12 Oct 2005 14:05:09 +0000 (14:05 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Wed, 12 Oct 2005 14:05:09 +0000 (14:05 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@736 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/socket.c

index a4ec68224094ca51f1c51006c7e8aeb2e95d1417..7e1cdacf8749ee53cad2982194dfc7fe61152cc2 100644 (file)
 #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);