From d1d4695474b8ea3dcb9ccf324571da3d8b47f2d7 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 24 Nov 2010 23:21:38 +0100 Subject: [PATCH] win: Fix wscript for libeio on windows --- deps/libeio/wscript | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 8b60e54425..5194eadb25 100644 --- a/deps/libeio/wscript +++ b/deps/libeio/wscript @@ -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