S_IFLNK, S_IFSOCK and SIGCHLD are not available on windows
authorBert Belder <bertbelder@gmail.com>
Thu, 25 Nov 2010 00:13:52 +0000 (01:13 +0100)
committerBert Belder <bertbelder@gmail.com>
Mon, 20 Dec 2010 22:50:37 +0000 (23:50 +0100)
src/node_constants.cc

index 5c95b7a..2ad6ce7 100644 (file)
@@ -29,8 +29,14 @@ void DefineConstants(Handle<Object> 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<Object> target) {
 #endif
 
   NODE_DEFINE_CONSTANT(target, SIGTERM);
+
+#ifdef SIGCHLD
   NODE_DEFINE_CONSTANT(target, SIGCHLD);
+#endif
 
 #ifdef SIGSTKFLT
   NODE_DEFINE_CONSTANT(target, SIGSTKFLT);