diff options
Diffstat (limited to 'lang/ruby/3.2/patches/patch-thread_pthread_h')
| -rw-r--r-- | lang/ruby/3.2/patches/patch-thread_pthread_h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/ruby/3.2/patches/patch-thread_pthread_h b/lang/ruby/3.2/patches/patch-thread_pthread_h new file mode 100644 index 0000000..7a0a1d4 --- /dev/null +++ b/lang/ruby/3.2/patches/patch-thread_pthread_h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | base-gcc doesn't support __thread | ||
| 2 | |||
| 3 | Index: thread_pthread.h | ||
| 4 | --- thread_pthread.h.orig | ||
| 5 | +++ thread_pthread.h | ||
| 6 | @@ -93,7 +93,7 @@ struct rb_thread_sched { | ||
| 7 | #ifndef RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED | ||
| 8 | # if __STDC_VERSION__ >= 201112 | ||
| 9 | # define RB_THREAD_LOCAL_SPECIFIER _Thread_local | ||
| 10 | -# elif defined(__GNUC__) | ||
| 11 | +# elif defined(__clang__) | ||
| 12 | /* note that ICC (linux) and Clang are covered by __GNUC__ */ | ||
| 13 | # define RB_THREAD_LOCAL_SPECIFIER __thread | ||
| 14 | # endif | ||
