diff options
| author | gfleury <gfleury@disroot.org> | 2025-11-21 21:13:36 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-11-22 03:28:48 +0100 |
| commit | 585eee3962d00490a95790035714d53c81cc38ba (patch) | |
| tree | 8e471a57a914a993c9fc0fe0376db1a8887fbb6e /sysdeps/pthread/thrd_detach.c | |
| parent | 604bdb0f8e9c0873b5420ec4429bd1dc40a41860 (diff) | |
htl: move c11 symbols into libc.
thrd_{create,detach,exit,join}.
mtx_{init,destroy,lock,trylock,unlock,timeelock}.
cnd_{broadcast,destroy,init,signal,timewait,wait,destroy}
tss_{create,delete,get,set}. call_once.
Message-ID: <20251121191336.1224485-1-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/pthread/thrd_detach.c')
| -rw-r--r-- | sysdeps/pthread/thrd_detach.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sysdeps/pthread/thrd_detach.c b/sysdeps/pthread/thrd_detach.c index d1a0598207..3aa2a20cd2 100644 --- a/sysdeps/pthread/thrd_detach.c +++ b/sysdeps/pthread/thrd_detach.c @@ -18,6 +18,7 @@ #include "thrd_priv.h" #include <shlib-compat.h> +#include <c11-thread.h> int __thrd_detach (thrd_t thr) @@ -27,11 +28,7 @@ __thrd_detach (thrd_t thr) err_code = __pthread_detach (thr); return thrd_err_map (err_code); } -#if PTHREAD_IN_LIBC -versioned_symbol (libc, __thrd_detach, thrd_detach, GLIBC_2_34); -# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34) -compat_symbol (libc, __thrd_detach, thrd_detach, GLIBC_2_28); -# endif -#else /* !PTHREAD_IN_LIBC */ -strong_alias (__thrd_detach, thrd_detach) +versioned_symbol (libc, __thrd_detach, thrd_detach, C11_THREADS_IN_LIBC); +#if OTHER_SHLIB_COMPAT (libpthread, C11_THREADS_INTRODUCED, C11_THREADS_IN_LIBC) +compat_symbol (libpthread, __thrd_detach, thrd_detach, C11_THREADS_INTRODUCED); #endif |
