From 9713476f65f1b0216007462427a4e66dd74e9dd4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 1 May 2009 21:34:12 +0200 Subject: Many build farm boxes do not have clock_gettime --- source3/lib/pthreadpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/pthreadpool.c') diff --git a/source3/lib/pthreadpool.c b/source3/lib/pthreadpool.c index c5f2b41265..b62bab0a2e 100644 --- a/source3/lib/pthreadpool.c +++ b/source3/lib/pthreadpool.c @@ -333,8 +333,8 @@ static void *pthreadpool_server(void *arg) * time, exit this thread. */ - clock_gettime(CLOCK_REALTIME, &timeout); - timeout.tv_sec += 1; + timeout.tv_sec = time(NULL) + 1; + timeout.tv_nsec = 0; while ((pool->jobs == NULL) && (pool->shutdown == 0)) { -- cgit