Browse Source

fix kqueue feature detection on Mac OS X 10.6

v0.7.4-release
Rasmus Andersson 15 years ago
committed by Ryan Dahl
parent
commit
87077e03cc
  1. 5
      deps/libev/wscript

5
deps/libev/wscript

@ -1,4 +1,5 @@
import Options
import platform
def set_options(opt):
pass
@ -28,7 +29,9 @@ def configure(conf):
"""
conf.check_cc(fragment=code, define_name="HAVE_EPOLL_CTL", msg="Checking for epoll_ctl")
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")

Loading…
Cancel
Save