diff options
Diffstat (limited to 'sysdeps/pthread/thrd_create.c')
| -rw-r--r-- | sysdeps/pthread/thrd_create.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sysdeps/pthread/thrd_create.c b/sysdeps/pthread/thrd_create.c index 788eb62a31..9dceeeaa58 100644 --- a/sysdeps/pthread/thrd_create.c +++ b/sysdeps/pthread/thrd_create.c @@ -18,6 +18,7 @@ #include "thrd_priv.h" #include <shlib-compat.h> +#include <c11-thread.h> int __thrd_create (thrd_t *thr, thrd_start_t func, void *arg) @@ -29,11 +30,7 @@ __thrd_create (thrd_t *thr, thrd_start_t func, void *arg) (void* (*) (void*))func, arg); return thrd_err_map (err_code); } -#if PTHREAD_IN_LIBC -versioned_symbol (libc, __thrd_create, thrd_create, GLIBC_2_34); -# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34) -compat_symbol (libc, __thrd_create, thrd_create, GLIBC_2_28); -# endif -#else /* !PTHREAD_IN_LIBC */ -strong_alias (__thrd_create, thrd_create) +versioned_symbol (libc, __thrd_create, thrd_create, C11_THREADS_IN_LIBC); +#if OTHER_SHLIB_COMPAT (libpthread, C11_THREADS_INTRODUCED, C11_THREADS_IN_LIBC) +compat_symbol (libpthread, __thrd_create, thrd_create, C11_THREADS_INTRODUCED); #endif |
