X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.c;h=b3f13a02e37e850f305e1b01c2412c5f7c36acc9;hb=f0026bca3eedb145a221c48e14525872edef91a4;hp=14d00d7bd593bf3522a3314cfda17d52fd6205b6;hpb=20fcf8e6ddd54370da3d30c2f73b0604a0411a12;p=citadel.git 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",