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 #include "internal.h"