Fix headers for node_net.cc

pull/22966/head
Bert Belder 2010-11-25 01:19:13 +01:00
parent cd921c2c62
commit cbf73fcccd
1 changed files with 12 additions and 7 deletions

View File

@ -8,18 +8,23 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <fcntl.h>
#include <arpa/inet.h> /* inet_pton */
#include <netdb.h>
#ifdef __MINGW32__
# include <winsock2.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#else // __POSIX__
# include <sys/ioctl.h>
# include <sys/socket.h>
# include <sys/un.h>
#include <sys/ioctl.h>
# include <arpa/inet.h> /* inet_pton */
# include <netdb.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
#endif
#ifdef __linux__
# include <linux/sockios.h> /* For the SIOCINQ / FIONREAD ioctl */