win: Fix wscript for libeio on windows
authorBert Belder <bertbelder@gmail.com>
Wed, 24 Nov 2010 22:21:38 +0000 (23:21 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 30 Nov 2010 07:46:40 +0000 (23:46 -0800)
deps/libeio/wscript

index 8b60e54..5194ead 100644 (file)
@@ -11,10 +11,12 @@ 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)
-  if not sys.platform.startswith("cygwin"):
-    conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork", mandatory=True)
-  else:
+  if sys.platform.startswith("cygwin"):
     conf.check_cc(lib="pthread", header_name="unistd.h", function_name="pthread_atfork", mandatory=True)
+  elif sys.platform.startswith("win32"):
+    conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork")
+  else:
+    conf.check_cc(lib="pthread", header_name="pthread.h", function_name="pthread_atfork", mandatory=True)
 
   conf.check_cc(msg="Checking for futimes(2)", define_name="HAVE_FUTIMES", fragment="""
     #include <sys/types.h>