mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-16 18:51:58 +02:00
thread: fix Linux detection
The usual macro for Linux is `__linux__`, not `__LINUX__`. Noticed this after Ruby fixed a similar error (6fbc32b5d0da31535cccc0eca1853273313a0b52). Fixes: 5b84636e62d2c77ad4fee49742750a3df762736c
This commit is contained in:
parent
0a7eb121fc
commit
90e09a8b9f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user