OSDN Git Service

Fix udp.c compilation with recent glibc (>= 2.8)
authorLuca Abeni <lucabe72@email.it>
Mon, 25 Aug 2008 06:20:00 +0000 (06:20 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 25 Aug 2008 06:20:00 +0000 (06:20 +0000)
Originally committed as revision 14963 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/udp.c

index 1730130..6a2e642 100644 (file)
@@ -24,6 +24,7 @@
  * UDP protocol
  */
 
+#define _BSD_SOURCE     /* Needed for using struct ip_mreq with recent glibc */
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"