avformat/udp: fix build on MINIX

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-06-07 14:43:07 +02:00
parent 74760883fc
commit b2d1e22c2a

View File

@ -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;
}