summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-24 22:20:21 +0300
committerMartin Storsjö <martin@martin.st>2012-06-26 17:22:21 +0300
commite64bceeac0cdf312d9481b3dd1ec1fda7ee2b94c (patch)
treebc22e590a3c8d6eaded944bade643b904268787b /libavformat/os_support.c
parent39dba5aa1b919c4b40619895bf3b4936fbe29deb (diff)
configure: Check for sys/time.h
Apparently this include is needed on some systems for building the poll fallback (for the timeval struct for select?), but it isn't available on all systems. Thus only include it if it exists. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index eaada4be0b..0cbaf453db 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -58,7 +58,9 @@ int ff_win32_open(const char *filename_utf8, int oflag, int pmode)
#if CONFIG_NETWORK
#include <fcntl.h>
#if !HAVE_POLL_H
+#if HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#if HAVE_WINSOCK2_H
#include <winsock2.h>
#elif HAVE_SYS_SELECT_H