mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Merge branch 'gthread-linux-macro' into 'main'
thread: fix Linux detection See merge request GNOME/glib!4583
This commit is contained in:
@@ -812,7 +812,7 @@ g_system_thread_set_name (const gchar *name)
|
||||
#if defined(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID)
|
||||
pthread_setname_np (name); /* on OS X and iOS */
|
||||
#elif defined(HAVE_PTHREAD_SETNAME_NP_WITH_TID)
|
||||
#ifdef __LINUX__
|
||||
#ifdef __linux__
|
||||
#define MAX_THREADNAME_LEN 16
|
||||
#else
|
||||
#define MAX_THREADNAME_LEN 32
|
||||
|
Reference in New Issue
Block a user