History

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.

Mans Rullgard committed 14 years ago

Commit d11baad1 parent 542920b1 file · +2 −0Browse files

Unified · Split

libavutil/file.c+2−0
@@ -20,7 +20,9 @@ · 19 unmodified lines
2020 #include "log.h"
2121 #include <fcntl.h>
2222 #include <sys/stat.h>
23+#if HAVE_UNISTD_H
2324 #include <unistd.h>
25+#endif
2426 #if HAVE_MMAP
2527 #include <sys/mman.h>
2628 #elif HAVE_MAPVIEWOFFILE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t