summaryrefslogtreecommitdiff
path: root/lib/tevent/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/wscript')
-rw-r--r--lib/tevent/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tevent/wscript b/lib/tevent/wscript
index 0a6f01163e..6d7414addb 100644
--- a/lib/tevent/wscript
+++ b/lib/tevent/wscript
@@ -18,8 +18,8 @@ def configure(conf):
conf.sub_config(LIBREPLACE_DIR)
conf.sub_config(LIBTALLOC_DIR)
- conf.CHECK_HEADERS('sys/epoll.h')
- conf.CHECK_FUNCS('epoll_create')
+ if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
+ conf.DEFINE('HAVE_EPOLL', 1)
conf.SAMBA_CONFIG_H()