[SCM] libav/experimental: udp: Define _DARWIN_C_SOURCE

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:17:01 UTC 2013


The following commit has been merged in the experimental branch:
commit 5961253463173fb3cff01a6c34e16dba1cd22e0e
Author: Martin Storsjö <martin at martin.st>
Date:   Tue Oct 5 16:35:33 2010 +0000

    udp: Define _DARWIN_C_SOURCE
    
    This is required in order to get the IP_MULTICAST_TTL define.
    
    Originally committed as revision 25351 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 01f441b..58fbe96 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"

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list