diff options
Diffstat (limited to 'libavformat/file.c')
-rw-r--r-- | libavformat/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/file.c b/libavformat/file.c index cca9ec1a06..0e3577d070 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -22,10 +22,12 @@ #include "libavutil/avstring.h" #include "avformat.h" #include <fcntl.h> -#if HAVE_SETMODE +#if HAVE_IO_H #include <io.h> #endif +#if HAVE_UNISTD_H #include <unistd.h> +#endif #include <sys/stat.h> #include <stdlib.h> #include "os_support.h" |