summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-01-28 03:12:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-01-30 03:40:59 +0100
commitd0eb91ad0451cdb6c062b2d4760bfa7f8bb4db6b (patch)
treeaad8df0b1a480fbcdcae278fe393f287106d76d3 /libavformat/os_support.c
parentb5f83debf5384195c8700d024fb760ab8d7250aa (diff)
os: replace select with poll
Select has limitations on the fd values it could accept and silently breaks when it is reached. (cherry picked from commit a8475bbdb64e638bd8161df9647876fd23f8a29a)
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 83f0820662..70cca92c8d 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -236,7 +236,6 @@ int ff_socket_nonblock(int socket, int enable)
}
#endif /* CONFIG_NETWORK */
-#if CONFIG_FFSERVER
#if !HAVE_POLL_H
int poll(struct pollfd *fds, nfds_t numfds, int timeout)
{
@@ -305,5 +304,3 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
return rc;
}
#endif /* HAVE_POLL_H */
-#endif /* CONFIG_FFSERVER */
-