|
|
@ -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") |
|
|
|