projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20fcf8e
)
* ctdl_internal_thread_func(): just use SYS_gettid if the system provides it. thit...
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 27 Jul 2010 20:03:02 +0000
(20:03 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 27 Jul 2010 20:03:02 +0000
(20:03 +0000)
citadel/threads.c
patch
|
blob
|
history
diff --git
a/citadel/threads.c
b/citadel/threads.c
index 14d00d7bd593bf3522a3314cfda17d52fd6205b6..b3f13a02e37e850f305e1b01c2412c5f7c36acc9 100644
(file)
--- a/
citadel/threads.c
+++ b/
citadel/threads.c
@@
-848,7
+848,7
@@
static void *ctdl_internal_thread_func (void *arg)
#endif
// Tell the world we are here
-#if
def HAVE_SYSCALL_H
+#if
defined(HAVE_SYSCALL_H) && defined (SYS_gettid)
this_thread->reltid = syscall(SYS_gettid);
#endif
CtdlLogPrintf(CTDL_NOTICE, "Created a new thread \"%s\" (0x%08lx).\n",