Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2010-11-25 01:44:33 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-30 10:48:34 +0300
commit4a329af418f768da0daa07510a581f9ed7da42aa (patch)
treeeb96feeebe5e3e632a2491bfa7e8ba8fb0e94c79 /deps
parent4c16dd7c5c7d048ec91c30c1afb783c4b2c03a60 (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/wscript10
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")