diff options
Diffstat (limited to 'sysdeps/pthread/sem_close.c')
-rw-r--r-- | sysdeps/pthread/sem_close.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/pthread/sem_close.c b/sysdeps/pthread/sem_close.c index 6649196cac..212848f745 100644 --- a/sysdeps/pthread/sem_close.c +++ b/sysdeps/pthread/sem_close.c @@ -21,7 +21,7 @@ #include <sem_routines.h> int -sem_close (sem_t *sem) +__sem_close (sem_t *sem) { if (!__sem_remove_mapping (sem)) { @@ -31,3 +31,11 @@ sem_close (sem_t *sem) return 0; } +#if PTHREAD_IN_LIBC +versioned_symbol (libc, __sem_close, sem_close, GLIBC_2_34); +# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1_1, GLIBC_2_34) +compat_symbol (libpthread, __sem_close, sem_close, GLIBC_2_1_1); +# endif +#else /* !PTHREAD_IN_LIBC */ +strong_alias (__sem_close, sem_close) +#endif |