From b48a92c8f50f7536c8b48113fe56e23ce2c80bae Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Wed, 22 Mar 2017 12:33:13 +0100 Subject: [PATCH] Max OS-X and FreeBSD multicast portability --- src/mdns.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mdns.c b/src/mdns.c index 8a63f013..fbb875ac 100644 --- a/src/mdns.c +++ b/src/mdns.c @@ -48,6 +48,11 @@ typedef u_short sa_family_t; #define TRUE 1 #endif +/* Define IPV6_ADD_MEMBERSHIP for FreeBSD and Mac OS X */ +#ifndef IPV6_ADD_MEMBERSHIP +#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP +#endif + uint64_t _getdns_get_time_as_uintt64(); #include "util/fptr_wlist.h"