Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix compiler warning in kqueue.c, tcp.c, udp.c
Browse files Browse the repository at this point in the history
Include <unistd.h>, it contains the definition of close().
  • Loading branch information
bnoordhuis committed Sep 27, 2011
1 parent ceff85d commit c89a75f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/kqueue.c
Expand Up @@ -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>

Expand Down
1 change: 1 addition & 0 deletions src/unix/tcp.c
Expand Up @@ -22,6 +22,7 @@
#include "uv.h"
#include "internal.h"

#include <unistd.h>
#include <assert.h>
#include <errno.h>

Expand Down
1 change: 1 addition & 0 deletions src/unix/udp.c
Expand Up @@ -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);
Expand Down

0 comments on commit c89a75f

Please sign in to comment.