diff options
author | Bert Belder <bertbelder@gmail.com> | 2010-11-25 01:21:38 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-30 10:46:40 +0300 |
commit | d1d4695474b8ea3dcb9ccf324571da3d8b47f2d7 (patch) | |
tree | 08415ae6b6c51bb3e0a0074796af74fb7df597e9 /deps | |
parent | 5a36d1b86fbf9ed9bf7dce4be02db40a2f063b69 (diff) |
win: Fix wscript for libeio on windows
Diffstat (limited to 'deps')
-rw-r--r-- | deps/libeio/wscript | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 8b60e544250..5194eadb25e 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 <sys/types.h> |