diff options
author | Bert Belder <bertbelder@gmail.com> | 2010-11-25 01:44:33 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-30 10:48:34 +0300 |
commit | 4a329af418f768da0daa07510a581f9ed7da42aa (patch) | |
tree | eb96feeebe5e3e632a2491bfa7e8ba8fb0e94c79 /deps | |
parent | 4c16dd7c5c7d048ec91c30c1afb783c4b2c03a60 (diff) |
win: Waf doesn't detect sys/select.h on mingw, but its there for sure
Diffstat (limited to 'deps')
-rw-r--r-- | deps/libev/wscript | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/deps/libev/wscript b/deps/libev/wscript index 24e30a1b840..4f6c9a882de 100644 --- a/deps/libev/wscript +++ b/deps/libev/wscript @@ -2,6 +2,7 @@ import Options import platform PLATFORM_IS_DARWIN = platform.platform().find('Darwin') == 0 +PLATFORM_IS_WIN32 = platform.platform().find('Win') >= 0 def set_options(opt): pass @@ -34,8 +35,13 @@ def configure(conf): else: conf.check_cc(header_name="sys/queue.h", function_name="kqueue") - if conf.check_cc(header_name="sys/select.h"): - conf.check_cc(header_name="sys/select.h", function_name="select") + if PLATFORM_IS_WIN32: + # Windows has sys/select.h and select but this config line doesn't detect it properly + conf.define('HAVE_SYS_SELECT_H', 1); + conf.define('HAVE_SELECT', 1); + else: + if conf.check_cc(header_name="sys/select.h"): + conf.check_cc(header_name="sys/select.h", function_name="select") if conf.check_cc(header_name="sys/eventfd.h"): conf.check_cc(header_name="sys/eventfd.h", function_name="eventfd") |