From 3ac386de0a669ae8da8c70979b55d0b7067f22b5 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 24 Dec 2024 16:50:05 +0100 Subject: [PATCH] basic/missing_threads: drop glibc < 2.16 check glibc 2.16 has been our baseline for ~10y (c.f. 3dd26f3e3aa7fa0696d304e14551362133dd281f) --- src/basic/missing_threads.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/basic/missing_threads.h b/src/basic/missing_threads.h index fb3b72249b0..d48e05d586b 100644 --- a/src/basic/missing_threads.h +++ b/src/basic/missing_threads.h @@ -5,9 +5,7 @@ #if HAVE_THREADS_H # include #elif !(defined(thread_local)) -/* Don't break on glibc < 2.16 that doesn't define __STDC_NO_THREADS__ - * see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769 */ -# if __STDC_VERSION__ >= 201112L && !(defined(__STDC_NO_THREADS__) || (defined(__GNU_LIBRARY__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 16)) +# if __STDC_VERSION__ >= 201112L && !(defined(__STDC_NO_THREADS__)) # define thread_local _Thread_local # else # define thread_local __thread -- 2.47.3