Many build farm boxes do not have clock_gettime
authorVolker Lendecke <vl@samba.org>
Fri, 1 May 2009 19:34:12 +0000 (21:34 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 1 May 2009 19:43:25 +0000 (21:43 +0200)
source3/lib/pthreadpool.c

index c5f2b41265ef39366abe25add5c59a4f68b87898..b62bab0a2eed9aea6f9a3b09d06d26b491265c92 100644 (file)
@@ -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)) {