network: Include unistd.h from network.h
authorMartin Storsjö <martin@martin.st>
Sun, 24 Jun 2012 21:39:57 +0000 (00:39 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 26 Jun 2012 14:22:21 +0000 (17:22 +0300)
commit39dba5aa1b919c4b40619895bf3b4936fbe29deb
treeb2dfdc496290daa538ccff893e8990cc013bb646
parentb8c632a7204511cec4176dbdc8f2e5276b1ec3a2
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>
libavformat/network.h
libavformat/sctp.c
libavformat/tcp.c
libavformat/udp.c