Revision 13904b55
libavformat/os_support.c | ||
---|---|---|
234 | 234 |
return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) & ~O_NONBLOCK); |
235 | 235 |
#endif |
236 | 236 |
} |
237 |
#endif /* CONFIG_NETWORK */ |
|
238 | 237 |
|
239 | 238 |
#if !HAVE_POLL_H |
240 | 239 |
int poll(struct pollfd *fds, nfds_t numfds, int timeout) |
... | ... | |
304 | 303 |
return rc; |
305 | 304 |
} |
306 | 305 |
#endif /* HAVE_POLL_H */ |
306 |
#endif /* CONFIG_NETWORK */ |
libavformat/os_support.h | ||
---|---|---|
55 | 55 |
#define closesocket close |
56 | 56 |
#endif |
57 | 57 |
|
58 |
#if CONFIG_FFSERVER |
|
59 | 58 |
#if !HAVE_POLL_H |
60 | 59 |
typedef unsigned long nfds_t; |
61 | 60 |
|
... | ... | |
82 | 81 |
|
83 | 82 |
int poll(struct pollfd *fds, nfds_t numfds, int timeout); |
84 | 83 |
#endif /* HAVE_POLL_H */ |
85 |
#endif /* CONFIG_FFSERVER */ |
|
86 | 84 |
#endif /* CONFIG_NETWORK */ |
87 | 85 |
|
88 | 86 |
#endif /* AVFORMAT_OS_SUPPORT_H */ |
Also available in: Unified diff