From cdd5fa4d967f49a5d21b2842a90338f1ee0dbb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 28 Jun 2016 15:15:14 +0300 Subject: [PATCH] udpsrc: #define __APPLE_USE_RFC_3542 to be able to use IPV6_PKTINFO on OSX/iOS --- gst/udp/gstudpsrc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index e646878566..10ae5d5c87 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -112,6 +112,8 @@ * otherwise struct in6_pktinfo is not defined completely * due to broken glibc headers */ #define _GNU_SOURCE +/* Needed for OSX/iOS to define the IPv6 variants */ +#define __APPLE_USE_RFC_3542 #include #ifdef HAVE_SYS_SOCKET_H #include