From ef7dddd01c9b2c2e6e676c023b9b6ae63ae9e49d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Mar 2000 08:01:35 +0000 Subject: Update. * sysdeps/unix/sysv/linux/errlist.c: Likewise. --- linuxthreads/attr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'linuxthreads/attr.c') 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 #include "pthread.h" #include "internals.h" +#include 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) -- cgit 1.4.1