Fix header files for node_buffer.cc
authorBert Belder <bertbelder@gmail.com>
Thu, 25 Nov 2010 00:09:33 +0000 (01:09 +0100)
committerBert Belder <bertbelder@gmail.com>
Mon, 20 Dec 2010 22:50:35 +0000 (23:50 +0100)
src/node_buffer.cc

index bc23ed8..69b419b 100644 (file)
@@ -6,7 +6,11 @@
 
 #include <string.h> // memcpy
 
-#include <arpa/inet.h>  // htons, htonl
+#ifdef __MINGW32__
+# include <winsock2.h>  // htons, htonl
+#else // __POSIX__
+# include <arpa/inet.h>  // htons, htonl
+#endif
 
 #include <node.h>