[FFmpeg-devel] [PATCH] udp: Define _DARWIN_C_SOURCE

Martin Storsjo martin
Tue Oct 5 15:20:12 CEST 2010


This is required in order to get the IP_MULTICAST_TTL define.

_BSD_SOURCE is already defined for similar reasons.
---
 libavformat/udp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 5ad1282..2ddb77c 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -25,6 +25,7 @@
  */
 
 #define _BSD_SOURCE     /* Needed for using struct ip_mreq with recent glibc */
+#define _DARWIN_C_SOURCE /* Needed for using IP_MULTICAST_TTL on OS X */
 #include "avformat.h"
 #include <unistd.h>
 #include "internal.h"
-- 
1.7.3.1




More information about the ffmpeg-devel mailing list