udpsrc: #define __APPLE_USE_RFC_3542 to be able to use IPV6_PKTINFO on OSX/iOS
authorSebastian Dröge <sebastian@centricular.com>
Tue, 28 Jun 2016 12:15:14 +0000 (15:15 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 28 Jun 2016 12:15:14 +0000 (15:15 +0300)
gst/udp/gstudpsrc.c

index e6468785660ffdc686023ffd6bde379b5173542c..10ae5d5c87843715464942721b3eeedc63ecad11 100644 (file)
  * 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 <sys/types.h>
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>