From: Bert Belder Date: Wed, 24 Nov 2010 22:21:38 +0000 (+0100) Subject: win: Fix wscript for libeio on windows X-Git-Tag: v0.3.2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1d4695474b8ea3dcb9ccf324571da3d8b47f2d7;p=platform%2Fupstream%2Fnodejs.git win: Fix wscript for libeio on windows --- diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 8b60e54..5194ead 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