diff options
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 2 |
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; } |