s4-process: fixed the thread process model so it compiles
authorAndrew Tridgell <tridge@samba.org>
Tue, 7 Sep 2010 01:25:42 +0000 (11:25 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 7 Sep 2010 02:55:27 +0000 (12:55 +1000)
it doesn't actually work, but at least it now compiles

source4/smbd/process_thread.c

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