From 39dba5aa1b919c4b40619895bf3b4936fbe29deb Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 25 Jun 2012 00:39:57 +0300 Subject: network: Include unistd.h from network.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/udp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/udp.c') diff --git a/libavformat/udp.c b/libavformat/udp.c index 39db263e12..71b445b187 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -30,7 +30,6 @@ #include "avio_internal.h" #include "libavutil/parseutils.h" #include "libavutil/avstring.h" -#include #include "internal.h" #include "network.h" #include "os_support.h" -- cgit v1.2.3