diff --git a/src/node_child_process.cc b/src/node_child_process.cc index 8848a79cdb..000817316a 100644 --- a/src/node_child_process.cc +++ b/src/node_child_process.cc @@ -1,3 +1,5 @@ +#ifdef __POSIX__ + // Copyright 2009 Ryan Dahl #include #include @@ -378,3 +380,5 @@ int ChildProcess::Kill(int sig) { } // namespace node NODE_MODULE(node_child_process, node::ChildProcess::Initialize); + +#endif // __POSIX__ diff --git a/src/node_extensions.h b/src/node_extensions.h index 131d34e6f1..a7db557ecb 100644 --- a/src/node_extensions.h +++ b/src/node_extensions.h @@ -2,7 +2,9 @@ NODE_EXT_LIST_START NODE_EXT_LIST_ITEM(node_buffer) NODE_EXT_LIST_ITEM(node_cares) +#ifdef __POSIX__ NODE_EXT_LIST_ITEM(node_child_process) +#endif #ifdef HAVE_OPENSSL NODE_EXT_LIST_ITEM(node_crypto) #endif