From: Mike Yuan Date: Tue, 24 Dec 2024 15:50:05 +0000 (+0100) Subject: basic/missing_threads: drop glibc < 2.16 check X-Git-Tag: v258-rc1~1779^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ac386de0a669ae8da8c70979b55d0b7067f22b5;p=thirdparty%2Fsystemd.git basic/missing_threads: drop glibc < 2.16 check glibc 2.16 has been our baseline for ~10y (c.f. 3dd26f3e3aa7fa0696d304e14551362133dd281f) --- 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