From: Wilfried Göesgens Date: Tue, 27 Jul 2010 20:03:02 +0000 (+0000) Subject: * ctdl_internal_thread_func(): just use SYS_gettid if the system provides it. thit... X-Git-Tag: v7.86~75 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f80a5a418be60ab3dd55ae2a62db355919a77c88 * ctdl_internal_thread_func(): just use SYS_gettid if the system provides it. thit fixes the BSD build. --- 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",