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:
Sam James 2025-04-07 03:26:09 +01:00
parent 0a7eb121fc
commit 90e09a8b9f
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -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