about summary refs log tree commit diff
path: root/linuxthreads/attr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-22 08:01:35 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-22 08:01:35 +0000
commitef7dddd01c9b2c2e6e676c023b9b6ae63ae9e49d (patch)
tree6f95b7b9c141fb01f711138c8a2ea84a34c80d2d /linuxthreads/attr.c
parent1ab1ea76bf65a1cf97dd734a75a08e1d79913b37 (diff)
downloadglibc-ef7dddd01c9b2c2e6e676c023b9b6ae63ae9e49d.tar.gz
glibc-ef7dddd01c9b2c2e6e676c023b9b6ae63ae9e49d.tar.xz
glibc-ef7dddd01c9b2c2e6e676c023b9b6ae63ae9e49d.zip
Update.
	* sysdeps/unix/sysv/linux/errlist.c: Likewise.
Diffstat (limited to 'linuxthreads/attr.c')
-rw-r--r--linuxthreads/attr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c
index 2a70ebe674..992234aadf 100644
--- a/linuxthreads/attr.c
+++ b/linuxthreads/attr.c
@@ -20,6 +20,7 @@
 #include <sys/param.h>
 #include "pthread.h"
 #include "internals.h"
+#include <shlib-compat.h>
 
 int __pthread_attr_init_2_1(pthread_attr_t *attr)
 {
@@ -36,9 +37,11 @@ int __pthread_attr_init_2_1(pthread_attr_t *attr)
   attr->__stacksize = STACK_SIZE - ps;
   return 0;
 }
-#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
-default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1);
 
+versioned_symbol (libpthread, __pthread_attr_init_2_1, pthread_attr_init,
+		  GLIBC_2_1);
+
+#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
 int __pthread_attr_init_2_0(pthread_attr_t *attr)
 {
   attr->__detachstate = PTHREAD_CREATE_JOINABLE;
@@ -49,8 +52,6 @@ int __pthread_attr_init_2_0(pthread_attr_t *attr)
   return 0;
 }
 symbol_version (__pthread_attr_init_2_0, pthread_attr_init, GLIBC_2.0);
-#else
-strong_alias (__pthread_attr_init_2_1, pthread_attr_init)
 #endif
 
 int pthread_attr_destroy(pthread_attr_t *attr)