summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sem_getvalue.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-06-03 02:51:14 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-06-03 02:51:14 +0000
commit5b9e501c32829682998ec9b5bfdd9417b99d1ad3 (patch)
tree1d1671382a93930180b7ec2a9104bba4baf9a71b /libpthread/nptl/sem_getvalue.c
parent855c7fda61d9313052a0afdfe851a4b390da845c (diff)
downloaduClibc-alpine-5b9e501c32829682998ec9b5bfdd9417b99d1ad3.tar.bz2
uClibc-alpine-5b9e501c32829682998ec9b5bfdd9417b99d1ad3.tar.xz
Sync up with latest NPTL code from glibc and add minor
#ifdef __UCLIBC__ directives.
Diffstat (limited to 'libpthread/nptl/sem_getvalue.c')
-rw-r--r--libpthread/nptl/sem_getvalue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpthread/nptl/sem_getvalue.c b/libpthread/nptl/sem_getvalue.c
index 4be736da0..6bc7ea82b 100644
--- a/libpthread/nptl/sem_getvalue.c
+++ b/libpthread/nptl/sem_getvalue.c
@@ -18,6 +18,7 @@
02111-1307 USA. */
#include <semaphore.h>
+#include <shlib-compat.h>
#include "semaphoreP.h"
@@ -35,3 +36,7 @@ __new_sem_getvalue (sem, sval)
return 0;
}
versioned_symbol (libpthread, __new_sem_getvalue, sem_getvalue, GLIBC_2_1);
+#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
+strong_alias (__new_sem_getvalue, __old_sem_getvalue)
+compat_symbol (libpthread, __old_sem_getvalue, sem_getvalue, GLIBC_2_0);
+#endif