From 3e8ab2d389e802df8ec28b36ebe3f968e760b2db Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 22 Mar 2013 09:39:00 +0100 Subject: fix build on non-Linux systems --- threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'threads.c') diff --git a/threads.c b/threads.c index e5006e90..990733a8 100644 --- a/threads.c +++ b/threads.c @@ -183,10 +183,10 @@ static void* thrdStarter(void *arg) assert(pThis != NULL); assert(pThis->pUsrThrdMain != NULL); +# if HAVE_PRCTL && defined PR_SET_NAME ustrncpy(thrdName+3, pThis->name, 20); dbgOutputTID((char*)thrdName); -# if HAVE_PRCTL && defined PR_SET_NAME /* set thread name - we ignore if the call fails, has no harsh consequences... */ if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) { DBGPRINTF("prctl failed, not setting thread name for '%s'\n", pThis->name); -- cgit v1.2.3