From d11baad055857ef01e79a0499efbdcbad5c7e657 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Thu, 21 Jun 2012 16:54:02 +0100 Subject: lavu/file: include unistd.h only when available The unistd.h header is only needed for the close() declaration. If this header is not available, the close() declaration may be provided by another header, e.g. io.h. Signed-off-by: Mans Rullgard --- libavutil/file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/file.c') diff --git a/libavutil/file.c b/libavutil/file.c index 77aaca0fc0..e1d0831994 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -20,7 +20,9 @@ #include "log.h" #include #include +#if HAVE_UNISTD_H #include +#endif #if HAVE_MMAP #include #elif HAVE_MAPVIEWOFFILE -- cgit v1.2.3