Commit af2a17c0 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Michael Niedermayer

cache: Only include unistd.h if it exists

This follows suite from f3be3597.
Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f3be3597
...@@ -33,10 +33,12 @@ ...@@ -33,10 +33,12 @@
#include "libavutil/file.h" #include "libavutil/file.h"
#include "avformat.h" #include "avformat.h"
#include <fcntl.h> #include <fcntl.h>
#if HAVE_SETMODE #if HAVE_IO_H
#include <io.h> #include <io.h>
#endif #endif
#if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <stdlib.h> #include <stdlib.h>
#include "os_support.h" #include "os_support.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment