From a7bdaabf609e4db7151fff9a1f94c1bfffac8a02 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 26 Jul 2011 22:05:08 +0200 Subject: [PATCH] Include "platform.h", not - conflicts with system headers Fixes #1003. --- src/node.cc | 2 +- src/node_buffer.cc | 2 +- src/node_os.cc | 2 +- src/platform_win32.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node.cc b/src/node.cc index 380143cd8e..ed31a71240 100644 --- a/src/node.cc +++ b/src/node.cc @@ -56,7 +56,7 @@ extern "C" { # include /* getgrnam() */ #endif -#include +#include "platform.h" #include #ifdef __POSIX__ # include diff --git a/src/node_buffer.cc b/src/node_buffer.cc index def06f03db..4cc540240f 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -30,7 +30,7 @@ #include // memcpy #ifdef __MINGW32__ -# include +# include "platform.h" # include // htons, htonl #endif diff --git a/src/node_os.cc b/src/node_os.cc index 077e207a72..ddf06563c7 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -22,7 +22,7 @@ #include #include -#include +#include "platform.h" #include diff --git a/src/platform_win32.cc b/src/platform_win32.cc index ce4cb4fe84..8a1b6f6008 100644 --- a/src/platform_win32.cc +++ b/src/platform_win32.cc @@ -21,7 +21,7 @@ #include -#include +#include "platform.h" #include