From a9e02947f6ec8ad35b09c6928eeb7285fec54c41 Mon Sep 17 00:00:00 2001
From: Luca Abeni <lucabe72@email.it>
Date: Mon, 25 Aug 2008 06:20:00 +0000
Subject: [PATCH] Fix udp.c compilation with recent glibc (>= 2.8)

Originally committed as revision 14963 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/udp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 1730130730..6a2e642fe3 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -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"
-- 
2.18.1