summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-09 19:22:25 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-28 16:40:19 +0100
commit0fc1650e091727971b3e3017f9f06cae6cdf71bb (patch)
tree204644c18847c7eb0388a5c89fa096128899f389 /lib/replace/wscript
parent5e93e3e88fb4a219492c23c18067f358b54311d0 (diff)
downloadsamba-0fc1650e091727971b3e3017f9f06cae6cdf71bb.tar.gz
samba-0fc1650e091727971b3e3017f9f06cae6cdf71bb.tar.bz2
samba-0fc1650e091727971b3e3017f9f06cae6cdf71bb.zip
libreplace: poll based on select
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index b1aad69fb7..d0bbe96159 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -254,6 +254,9 @@ def configure(conf):
if conf.CONFIG_SET('HAVE_EPOLL_CREATE') and conf.CONFIG_SET('HAVE_SYS_EPOLL_H'):
conf.DEFINE('HAVE_EPOLL', 1)
+ conf.CHECK_HEADERS('poll.h')
+ conf.CHECK_FUNCS('poll')
+
if not conf.CHECK_CODE('''#define LIBREPLACE_CONFIGURE_TEST_STRPTIME
#include "test/strptime.c"''',
define='HAVE_STRPTIME',
@@ -411,6 +414,7 @@ def build(bld):
if bld.CONFIG_SET('REPLACE_GETPASS'): REPLACE_SOURCE += ' getpass.c'
if not bld.CONFIG_SET('HAVE_CRYPT'): REPLACE_SOURCE += ' crypt.c'
if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c'
+ if not bld.CONFIG_SET('HAVE_POLL'): REPLACE_SOURCE += ' poll.c'
if not bld.CONFIG_SET('HAVE_SOCKETPAIR'): REPLACE_SOURCE += ' socketpair.c'
if not bld.CONFIG_SET('HAVE_CONNECT'): REPLACE_SOURCE += ' socket.c'