From cad0219e69d2acc766583083c0738c2b9ea3901f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 7 Sep 2010 11:25:42 +1000 Subject: s4-process: fixed the thread process model so it compiles it doesn't actually work, but at least it now compiles --- source4/smbd/process_thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/smbd') diff --git a/source4/smbd/process_thread.c b/source4/smbd/process_thread.c index c047d23d26..b169a79222 100644 --- a/source4/smbd/process_thread.c +++ b/source4/smbd/process_thread.c @@ -29,6 +29,7 @@ #endif #include "system/wait.h" #include "system/filesys.h" +#include "system/time.h" #include "lib/events/events.h" #include "lib/util/dlinklist.h" #include "lib/util/mutex.h" @@ -317,7 +318,7 @@ static int thread_rwlock_lock_read(smb_rwlock_t *rwlockP, const char *name) pthread_rwlock_t *rwlock = (pthread_rwlock_t *)rwlockP->rwlock; int rc; double t; - struct time tp1; + struct timespec tp1; /* Test below is ONLY for debugging */ if ((rc = pthread_rwlock_tryrdlock(rwlock))) { if (rc == EBUSY) { -- cgit