os_support: Include all the necessary headers for the win32 open function
[ffmpeg.git] / libavformat / os_support.c
index 0cbaf45..8054ba6 100644 (file)
 #include "os_support.h"
 
 #if defined(_WIN32) && !defined(__MINGW32CE__)
+#undef open
+#include <fcntl.h>
+#include <io.h>
 #include <windows.h>
 
-#undef open
 int ff_win32_open(const char *filename_utf8, int oflag, int pmode)
 {
     int fd;