msvc: fix implicitly declared read/close.
authorMatthew Oliver <protogonoi@gmail.com>
Sat, 2 Aug 2014 01:08:29 +0000 (11:08 +1000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Aug 2014 12:52:17 +0000 (14:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libxvid.c
libavcodec/libxvid_rc.c
libavutil/random_seed.c

index 3ec9524..b521e01 100644 (file)
 #include <unistd.h>
 #endif
 
+#if HAVE_IO_H
+#include <io.h>
+#endif
+
 /**
  * Buffer management macros.
  */
index 1351dcd..ae6ddb8 100644 (file)
 #include <unistd.h>
 #endif
 
+#if HAVE_IO_H
+#include <io.h>
+#endif
+
 #undef NDEBUG
 #include <assert.h>
 
index e3ffaff..8aa8c38 100644 (file)
@@ -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>