git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5e5a11
)
s4-process: fixed the thread process model so it compiles
author
Andrew Tridgell
<tridge@samba.org>
Tue, 7 Sep 2010 01:25:42 +0000
(11:25 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/smbd/process_thread.c
b/source4/smbd/process_thread.c
index c047d23d2683f268052090c7c25d3ed534121c67..b169a79222c1ee5c3b68563559028ba58629ce49 100644
(file)
--- 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 time
spec
tp1;
/* Test below is ONLY for debugging */
if ((rc = pthread_rwlock_tryrdlock(rwlock))) {
if (rc == EBUSY) {