aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-07 14:43:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-07 14:43:07 +0200
commitb2d1e22c2a5be440d39c42ed713436d7ea6dd0a5 (patch)
tree94e20a3db584c2b06c6fd07a4354d3583200f628
parent74760883fcb4443d105814ed246b3cf51d7e9dca (diff)
downloadffmpeg-b2d1e22c2a5be440d39c42ed713436d7ea6dd0a5.tar.gz
avformat/udp: fix build on MINIX
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/udp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 91b411e679..a8baa5bf9a 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -647,7 +647,9 @@ static int udp_open(URLContext *h, const char *uri, int flags)
}
if (s->is_broadcast) {
+#ifdef SO_BROADCAST
if (setsockopt (udp_fd, SOL_SOCKET, SO_BROADCAST, &(s->is_broadcast), sizeof(s->is_broadcast)) != 0)
+#endif
goto fail;
}