1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-build: Add check for getrusage()

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2019-01-18 17:43:44 +11:00 committed by Amitay Isaacs
parent 3d42e257a6
commit 87032ccebd

View File

@ -180,6 +180,7 @@ def configure(conf):
Logs.error('Need sched_setscheduler()') Logs.error('Need sched_setscheduler()')
sys.exit(1) sys.exit(1)
conf.CHECK_FUNCS('mlockall') conf.CHECK_FUNCS('mlockall')
conf.CHECK_FUNCS('getrusage', headers="sys/time.h sys/resource.h")
if not conf.CHECK_VARIABLE('ETIME', headers='errno.h'): if not conf.CHECK_VARIABLE('ETIME', headers='errno.h'):
conf.DEFINE('ETIME', 'ETIMEDOUT') conf.DEFINE('ETIME', 'ETIMEDOUT')