diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-09 19:22:25 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-02-28 16:40:19 +0100 |
commit | 0fc1650e091727971b3e3017f9f06cae6cdf71bb (patch) | |
tree | 204644c18847c7eb0388a5c89fa096128899f389 /lib/replace/wscript | |
parent | 5e93e3e88fb4a219492c23c18067f358b54311d0 (diff) | |
download | samba-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/wscript | 4 |
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' |