On 2012-06-21 17:03:47 +0100, Måns Rullgård wrote: > The unistd.h header is only needed for the close() declaration. > If this header is not available, the close() declaration may be > provide by another header, e.g. io.h. > > Signed-off-by: Mans Rullgard <[email protected]> > --- > libavutil/file.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavutil/file.c b/libavutil/file.c > index 77aaca0..e1d0831 100644 > --- a/libavutil/file.c > +++ b/libavutil/file.c > @@ -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
lgtm Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
