Skip to content

Commit

Permalink
fix kqueue feature detection on Mac OS X 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms authored and ry committed Dec 18, 2009
1 parent 20b945d commit 87077e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deps/libev/wscript
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Options
import platform

def set_options(opt):
pass
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 87077e0

Please sign in to comment.