From f0026bca3eedb145a221c48e14525872edef91a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 27 Jul 2010 20:03:02 +0000 Subject: [PATCH] * ctdl_internal_thread_func(): just use SYS_gettid if the system provides it. thit fixes the BSD build. --- citadel/threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/threads.c b/citadel/threads.c index 14d00d7bd..b3f13a02e 100644 --- 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 -#ifdef 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", -- 2.30.2