From cd921c2c62cc5ab4d79ed403f8f646566b8ac526 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:13:52 +0100 Subject: [PATCH] S_IFLNK, S_IFSOCK and SIGCHLD are not available on windows --- src/node_constants.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/node_constants.cc b/src/node_constants.cc index 5c95b7a3ad..2ad6ce78b7 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -29,8 +29,14 @@ void DefineConstants(Handle target) { NODE_DEFINE_CONSTANT(target, S_IFCHR); NODE_DEFINE_CONSTANT(target, S_IFBLK); NODE_DEFINE_CONSTANT(target, S_IFIFO); + +#ifdef S_IFLNK NODE_DEFINE_CONSTANT(target, S_IFLNK); +#endif + +#ifdef S_IFSOCK NODE_DEFINE_CONSTANT(target, S_IFSOCK); +#endif #ifdef O_CREAT NODE_DEFINE_CONSTANT(target, O_CREAT); @@ -498,7 +504,10 @@ void DefineConstants(Handle target) { #endif NODE_DEFINE_CONSTANT(target, SIGTERM); + +#ifdef SIGCHLD NODE_DEFINE_CONSTANT(target, SIGCHLD); +#endif #ifdef SIGSTKFLT NODE_DEFINE_CONSTANT(target, SIGSTKFLT);