From b4127e58cc920ca9c8bfcee2d04ccd4493c26483 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 9 Oct 2021 07:58:08 +0000 Subject: [PATCH] Fix some missing thread names in debug info. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6076 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/sys_linux_threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/sys_linux_threads.c b/engine/common/sys_linux_threads.c index 14b85179f..7b32f60e3 100644 --- a/engine/common/sys_linux_threads.c +++ b/engine/common/sys_linux_threads.c @@ -93,7 +93,7 @@ void *Sys_CreateThread(char *name, int (*func)(void *), void *args, int priority thread = NULL; } pthread_attr_destroy(&attr); -#if defined(DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ) +#if defined(_DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ) #if __GLIBC_PREREQ(2,12) pthread_setname_np(*thread, name); #endif @@ -123,7 +123,7 @@ void *Sys_CreateThread(char *name, int (*func)(void *), void *args, int priority } pthread_attr_destroy(&attr); -#if defined(DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ) +#if defined(_DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ) #if __GLIBC_PREREQ(2,12) pthread_setname_np(*thread, name); #endif