lavu/file: include unistd.h only when available
[ffmpeg.git] / libavutil / file.c
index 77aaca0..e1d0831 100644 (file)
@@ -20,7 +20,9 @@
 #include "log.h"
 #include <fcntl.h>
 #include <sys/stat.h>
+#if HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #if HAVE_MMAP
 #include <sys/mman.h>
 #elif HAVE_MAPVIEWOFFILE