diff options
author | Martin Storsjö <martin@martin.st> | 2012-06-25 00:39:57 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-26 17:22:21 +0300 |
commit | 39dba5aa1b919c4b40619895bf3b4936fbe29deb (patch) | |
tree | b2dfdc496290daa538ccff893e8990cc013bb646 /libavformat/network.h | |
parent | b8c632a7204511cec4176dbdc8f2e5276b1ec3a2 (diff) | |
download | ffmpeg-39dba5aa1b919c4b40619895bf3b4936fbe29deb.tar.gz |
network: Include unistd.h from network.h
This heaader is required for close() for sockets in network
code. For winsock, the equivalent function is defined in the
winsock2.h header.
This avoids having the HAVE_UNISTD_H in all files dealing with
raw sockets.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/network.h')
-rw-r--r-- | libavformat/network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h index 1dc9deb675..3e4422e4c2 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -27,6 +27,10 @@ #include "libavutil/error.h" #include "os_support.h" +#if HAVE_UNISTD_H +#include <unistd.h> +#endif + #if HAVE_WINSOCK2_H #include <winsock2.h> #include <ws2tcpip.h> |