]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/missing_threads: drop glibc < 2.16 check
authorMike Yuan <me@yhndnzj.com>
Tue, 24 Dec 2024 15:50:05 +0000 (16:50 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 24 Dec 2024 15:55:21 +0000 (16:55 +0100)
glibc 2.16 has been our baseline for ~10y
(c.f. 3dd26f3e3aa7fa0696d304e14551362133dd281f)

src/basic/missing_threads.h

index fb3b72249b0520770daea9b2fee0bd2f2c4ef0ed..d48e05d586bf718481f9a36f7f9bc9d70c37c9bd 100644 (file)
@@ -5,9 +5,7 @@
 #if HAVE_THREADS_H
 #  include <threads.h>
 #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