summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-01 21:34:12 +0200
committerVolker Lendecke <vl@samba.org>2009-05-01 21:43:25 +0200
commit9713476f65f1b0216007462427a4e66dd74e9dd4 (patch)
treecaf7fff47bd95ae6c9d6fd0ed4938182a2881aaf
parent30038534f4e846b14ec737a2726213d8a8db9d44 (diff)
downloadsamba-9713476f65f1b0216007462427a4e66dd74e9dd4.tar.gz
samba-9713476f65f1b0216007462427a4e66dd74e9dd4.tar.bz2
samba-9713476f65f1b0216007462427a4e66dd74e9dd4.zip
Many build farm boxes do not have clock_gettime
-rw-r--r--source3/lib/pthreadpool.c4
1 files changed, 2 insertions, 2 deletions
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)) {