diff --git a/src/node_net.cc b/src/node_net.cc index f958744cd0..c0b7951ad5 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -8,18 +8,23 @@ #include #include -#include -#include #include #include -#include /* inet_pton */ -#include +#ifdef __MINGW32__ +# include -#include -#include +#else // __POSIX__ +# include +# include +# include -#include +# include /* inet_pton */ + +# include +# include +# include +#endif #ifdef __linux__ # include /* For the SIOCINQ / FIONREAD ioctl */