From b2d1e22c2a5be440d39c42ed713436d7ea6dd0a5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 7 Jun 2014 14:43:07 +0200 Subject: avformat/udp: fix build on MINIX Signed-off-by: Michael Niedermayer --- libavformat/udp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/udp.c') 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; } -- cgit v1.2.1