diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-06-24 13:38:08 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-06-24 13:38:08 +0200 |
commit | 1fb7dc751edc462f6954b9c16dd126bf48a1df18 (patch) | |
tree | df7428429da634a874d6a6e97b19daf05e94c27b /sysdeps/htl/sem-timedwait.c | |
parent | 6f3331f26d2ee5d210ba768389828c391750f7a0 (diff) | |
download | glibc-1fb7dc751edc462f6954b9c16dd126bf48a1df18.tar glibc-1fb7dc751edc462f6954b9c16dd126bf48a1df18.tar.gz glibc-1fb7dc751edc462f6954b9c16dd126bf48a1df18.tar.bz2 glibc-1fb7dc751edc462f6954b9c16dd126bf48a1df18.zip |
htl: Add wrapper header for <semaphore.h> with hidden __sem_post
This is required to avoid a check-localplt failure due to a
sem_post call through the PLT.
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'sysdeps/htl/sem-timedwait.c')
-rw-r--r-- | sysdeps/htl/sem-timedwait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/htl/sem-timedwait.c b/sysdeps/htl/sem-timedwait.c index fffdf36467..5095d49b28 100644 --- a/sysdeps/htl/sem-timedwait.c +++ b/sysdeps/htl/sem-timedwait.c @@ -167,7 +167,7 @@ out_locked: { if (ret == 0 && ctx.cancel_wake == 0) /* We were cancelled while waking up with a token, put it back. */ - sem_post (sem); + __sem_post (sem); __pthread_exit (PTHREAD_CANCELED); } |