summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-07 11:25:42 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-07 12:55:27 +1000
commitcad0219e69d2acc766583083c0738c2b9ea3901f (patch)
tree5db8ff0601bb44714c5659b3141e3e92b8069228 /source4/smbd
parente5e5a1110fb4092a1221512627b1f9d03ec8839c (diff)
downloadsamba-cad0219e69d2acc766583083c0738c2b9ea3901f.tar.gz
samba-cad0219e69d2acc766583083c0738c2b9ea3901f.tar.bz2
samba-cad0219e69d2acc766583083c0738c2b9ea3901f.zip
s4-process: fixed the thread process model so it compiles
it doesn't actually work, but at least it now compiles
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/process_thread.c3
1 files changed, 2 insertions, 1 deletions
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) {