summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/udp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 3f3a9f760b..ff2885b19b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -28,6 +28,11 @@
#endif
#include <netdb.h>
+#ifndef IPV6_ADD_MEMBERSHIP
+#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
+#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
+#endif
+
typedef struct {
int udp_fd;
int ttl;