summaryrefslogtreecommitdiff
path: root/deps/libev
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2009-12-15 22:32:50 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-12-18 15:14:33 +0100
commit87077e03ccee3f4e96e66f33eddc4609a30799c4 (patch)
treee4765cad472a9c80a176c4e8d455ccd53f2aafea /deps/libev
parent20b945df706b2b9fcbc1a84230372d288d497544 (diff)
downloadnode-new-87077e03ccee3f4e96e66f33eddc4609a30799c4.tar.gz
fix kqueue feature detection on Mac OS X 10.6
Diffstat (limited to 'deps/libev')
-rw-r--r--deps/libev/wscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/libev/wscript b/deps/libev/wscript
index 9df51afe08..8235951f84 100644
--- a/deps/libev/wscript
+++ b/deps/libev/wscript
@@ -1,4 +1,5 @@
import Options
+import platform
def set_options(opt):
pass
@@ -28,8 +29,10 @@ def configure(conf):
"""
conf.check_cc(fragment=code, define_name="HAVE_EPOLL_CTL", msg="Checking for epoll_ctl")
-
- conf.check_cc(header_name="sys/queue.h", function_name="kqueue")
+ if platform.platform().find('Darwin') == 0:
+ conf.check_cc(header_name="sys/event.h", function_name="kqueue")
+ else:
+ conf.check_cc(header_name="sys/queue.h", function_name="kqueue")
conf.check_cc(header_name="port.h", function_name="port_create")
conf.check_cc(header_name="poll.h", function_name="poll")
conf.check_cc(header_name="sys/select.h", function_name="select")