unix: fix compiler warning in kqueue.c, tcp.c, udp.c

Include <unistd.h>, it contains the definition of close().
This commit is contained in:
Ben Noordhuis 2011-09-28 00:49:08 +02:00
parent ceff85dcfb
commit c89a75f5a2
3 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/event.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>

View File

@ -22,6 +22,7 @@
#include "uv.h"
#include "internal.h"
#include <unistd.h>
#include <assert.h>
#include <errno.h>

View File

@ -26,6 +26,7 @@
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
static void uv__udp_run_completed(uv_udp_t* handle);