projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
542920b
)
lavu/file: include unistd.h only when available
author
Mans Rullgard
<mans@mansr.com>
Thu, 21 Jun 2012 15:54:02 +0000
(16:54 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Thu, 21 Jun 2012 21:54:31 +0000
(22:54 +0100)
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 <mans@mansr.com>
libavutil/file.c
patch
|
blob
|
history
diff --git
a/libavutil/file.c
b/libavutil/file.c
index
77aaca0
..
e1d0831
100644
(file)
--- 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