diff options
author | Martin Storsjö | 2012-06-25 00:39:57 +0300 |
---|---|---|
committer | Martin Storsjö | 2012-06-26 17:22:21 +0300 |
commit | 39dba5aa1b919c4b40619895bf3b4936fbe29deb (patch) | |
tree | b2dfdc496290daa538ccff893e8990cc013bb646 /libavformat/tcp.c | |
parent | b8c632a7204511cec4176dbdc8f2e5276b1ec3a2 (diff) |
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/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index e77e4c5231..badc0ba935 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -20,7 +20,6 @@ */ #include "avformat.h" #include "libavutil/parseutils.h" -#include <unistd.h> #include "internal.h" #include "network.h" #include "os_support.h" |