summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Oliver <protogonoi@gmail.com>2014-08-02 11:08:29 +1000
committerMichael Niedermayer <michaelni@gmx.at>2014-08-02 14:52:17 +0200
commit66627075d960c1c4ce977244a115ba1e82ebab9f (patch)
tree43d37364ef44fbfd9d58c57e9d507f20f15a06af
parent3fa9692ae2324b8fcc1a8aa47b9a75826740b32e (diff)
msvc: fix implicitly declared read/close.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/libxvid.c4
-rw-r--r--libavcodec/libxvid_rc.c4
-rw-r--r--libavutil/random_seed.c3
3 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 3ec9524c93..b521e010e3 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -39,6 +39,10 @@
#include <unistd.h>
#endif
+#if HAVE_IO_H
+#include <io.h>
+#endif
+
/**
* Buffer management macros.
*/
diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c
index 1351dcde6d..ae6ddb89d1 100644
--- a/libavcodec/libxvid_rc.c
+++ b/libavcodec/libxvid_rc.c
@@ -32,6 +32,10 @@
#include <unistd.h>
#endif
+#if HAVE_IO_H
+#include <io.h>
+#endif
+
#undef NDEBUG
#include <assert.h>
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c
index e3ffaff014..8aa8c3879b 100644
--- a/libavutil/random_seed.c
+++ b/libavutil/random_seed.c
@@ -23,6 +23,9 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if HAVE_IO_H
+#include <io.h>
+#endif
#if HAVE_CRYPTGENRANDOM
#include <windows.h>
#include <wincrypt.h>