summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-05 16:35:33 +0000
committerMartin Storsjö <martin@martin.st>2010-10-05 16:35:33 +0000
commit5961253463173fb3cff01a6c34e16dba1cd22e0e (patch)
tree8473c7cf9b90ccd51a48f0a25e445bf56f1185c5 /libavformat/udp.c
parent25a2ebb917f301c26be7050e9b5dfe28fe7ade0e (diff)
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
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 01f441b711..58fbe96c3f 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"