summaryrefslogtreecommitdiff
path: root/deps/libeio
diff options
context:
space:
mode:
authorRaffaele Sena <raff367@gmail.com>2010-06-08 21:08:05 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-06-09 15:08:46 -0700
commitb3b81d67ff1bc7e795cff7baa00dd716eca95eba (patch)
treee0b37ba7d5144586cb70dcae2ac0085e0fd3e11a /deps/libeio
parentcd232a9ccecb5102170d4d40c91f06bb538104e0 (diff)
downloadnode-b3b81d67ff1bc7e795cff7baa00dd716eca95eba.tar.gz
Port to cygwin
Diffstat (limited to 'deps/libeio')
-rw-r--r--deps/libeio/wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/libeio/wscript b/deps/libeio/wscript
index e6146ec7f..8b60e5442 100644
--- a/deps/libeio/wscript
+++ b/deps/libeio/wscript
@@ -1,4 +1,5 @@
import Options
+import sys
def set_options(opt):
pass
@@ -10,7 +11,10 @@ def configure(conf):
conf.check(lib='pthread', uselib_store='PTHREAD')
conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_create", mandatory=True)
- conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork", mandatory=True)
+ if not sys.platform.startswith("cygwin"):
+ conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork", mandatory=True)
+ else:
+ conf.check_cc(lib="pthread", header_name="unistd.h", function_name="pthread_atfork", mandatory=True)
conf.check_cc(msg="Checking for futimes(2)", define_name="HAVE_FUTIMES", fragment="""
#include <sys/types.h>