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/cnd_broadcast.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/cnd_broadcast.c')
| -rw-r--r-- | sysdeps/pthread/cnd_broadcast.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sysdeps/pthread/cnd_broadcast.c b/sysdeps/pthread/cnd_broadcast.c index 4bef01a383..65b5c264bc 100644 --- a/sysdeps/pthread/cnd_broadcast.c +++ b/sysdeps/pthread/cnd_broadcast.c @@ -18,6 +18,7 @@ #include "thrd_priv.h" #include <shlib-compat.h> +#include <c11-thread.h> int __cnd_broadcast (cnd_t *cond) @@ -25,11 +26,7 @@ __cnd_broadcast (cnd_t *cond) int err_code = __pthread_cond_broadcast ((pthread_cond_t*) cond); return thrd_err_map (err_code); } -#if PTHREAD_IN_LIBC -versioned_symbol (libc, __cnd_broadcast, cnd_broadcast, GLIBC_2_34); -# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34) -compat_symbol (libpthread, __cnd_broadcast, cnd_broadcast, GLIBC_2_28); -# endif -#else /* !PTHREAD_IN_LIBC */ -strong_alias (__cnd_broadcast, cnd_broadcast) +versioned_symbol (libc, __cnd_broadcast, cnd_broadcast, C11_THREADS_IN_LIBC); +#if OTHER_SHLIB_COMPAT (libpthread, C11_THREADS_INTRODUCED, C11_THREADS_IN_LIBC) +compat_symbol (libpthread, __cnd_broadcast, cnd_broadcast, C11_THREADS_INTRODUCED); #endif |
