Commit d11baad0 authored by Mans Rullgard's avatar Mans Rullgard

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: 's avatarMans Rullgard <mans@mansr.com>
parent 542920b7
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
#include "log.h" #include "log.h"
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#if HAVE_MMAP #if HAVE_MMAP
#include <sys/mman.h> #include <sys/mman.h>
#elif HAVE_MAPVIEWOFFILE #elif HAVE_MAPVIEWOFFILE
......
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