projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30bab52
)
Fix header files for node_buffer.cc
author
Bert Belder
<bertbelder@gmail.com>
Thu, 25 Nov 2010 00:09:33 +0000
(
01:09
+0100)
committer
Bert Belder
<bertbelder@gmail.com>
Mon, 20 Dec 2010 22:50:35 +0000
(23:50 +0100)
src/node_buffer.cc
patch
|
blob
|
history
diff --git
a/src/node_buffer.cc
b/src/node_buffer.cc
index
bc23ed8
..
69b419b
100644
(file)
--- a/
src/node_buffer.cc
+++ b/
src/node_buffer.cc
@@
-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>