posix: include unistd.h for close

The close prototype is defined in unistd.h, according to
POSIX. Include it.
This commit is contained in:
Erik Faye-Lund 2010-09-13 00:02:44 +02:00
parent f2c12d1351
commit 7ea7cabd96

View File

@ -25,6 +25,7 @@
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#define SOCKET int
#define INVALID_SOCKET -1
#define closesocket(x) close(x)