summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2008-02-13 12:51:14 +0000
committerLuca Abeni <lucabe72@email.it>2008-02-13 12:51:14 +0000
commitf8cda19ee6285cc83471f87357a1c6f6076706ef (patch)
treeb5795202deeaa819074e9b0b3f51b95ebef16b0c /libavformat/os_support.c
parentd435e520d813c5f3e0c06359e145432a3325d880 (diff)
Include poll.h instead of sys/poll.h
Originally committed as revision 11924 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 025797b942..cc109d5967 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -26,7 +26,7 @@
#include "os_support.h"
#ifdef CONFIG_NETWORK
-#ifndef HAVE_SYS_POLL_H
+#ifndef HAVE_POLL_H
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#elif defined (HAVE_SYS_SELECT_H)
@@ -83,7 +83,7 @@ int ff_socket_nonblock(int socket, int enable)
#endif /* CONFIG_NETWORK */
#ifdef CONFIG_FFSERVER
-#ifndef HAVE_SYS_POLL_H
+#ifndef HAVE_POLL_H
int poll(struct pollfd *fds, nfds_t numfds, int timeout)
{
fd_set read_set;
@@ -150,6 +150,6 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
return rc;
}
-#endif /* HAVE_SYS_POLL_H */
+#endif /* HAVE_POLL_H */
#endif /* CONFIG_FFSERVER */