Browse Source

Fix headers for node_net.cc

v0.7.4-release
Bert Belder 14 years ago
parent
commit
cbf73fcccd
  1. 15
      src/node_net.cc

15
src/node_net.cc

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

Loading…
Cancel
Save