From af2a17c09ad1324def0c3d6d8e8a2951ab9f8501 Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Fri, 7 Sep 2012 13:20:42 -0400 Subject: [PATCH] cache: Only include unistd.h if it exists This follows suite from f3be3597079be7cd7adbb8392c32e408cadd3da2. Signed-off-by: Derek Buitenhuis Signed-off-by: Michael Niedermayer --- libavformat/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/cache.c b/libavformat/cache.c index 900554a82a..2cfc396f29 100644 --- a/libavformat/cache.c +++ b/libavformat/cache.c @@ -33,10 +33,12 @@ #include "libavutil/file.h" #include "avformat.h" #include -#if HAVE_SETMODE +#if HAVE_IO_H #include #endif +#if HAVE_UNISTD_H #include +#endif #include #include #include "os_support.h"