aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/attr.c3
-rw-r--r--linuxthreads/oldsemaphore.c12
-rw-r--r--linuxthreads/pthread.c2
-rw-r--r--linuxthreads/weaks.c3
4 files changed, 11 insertions, 9 deletions
diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c
index 992234aadf..966cea1203 100644
--- a/linuxthreads/attr.c
+++ b/linuxthreads/attr.c
@@ -51,7 +51,8 @@ int __pthread_attr_init_2_0(pthread_attr_t *attr)
attr->__scope = PTHREAD_SCOPE_SYSTEM;
return 0;
}
-symbol_version (__pthread_attr_init_2_0, pthread_attr_init, GLIBC_2.0);
+compat_symbol (libpthread, __pthread_attr_init_2_0, pthread_attr_init,
+ GLIBC_2_0);
#endif
int pthread_attr_destroy(pthread_attr_t *attr)
diff --git a/linuxthreads/oldsemaphore.c b/linuxthreads/oldsemaphore.c
index c6f44cfce2..52957d9a27 100644
--- a/linuxthreads/oldsemaphore.c
+++ b/linuxthreads/oldsemaphore.c
@@ -226,11 +226,11 @@ static void sem_restart_list(pthread_descr waiting)
}
}
-symbol_version (__old_sem_init, sem_init, GLIBC_2.0);
-symbol_version (__old_sem_wait, sem_wait, GLIBC_2.0);
-symbol_version (__old_sem_trywait, sem_trywait, GLIBC_2.0);
-symbol_version (__old_sem_post, sem_post, GLIBC_2.0);
-symbol_version (__old_sem_getvalue, sem_getvalue, GLIBC_2.0);
-symbol_version (__old_sem_destroy, sem_destroy, GLIBC_2.0);
+compat_symbol (libpthread, __old_sem_init, sem_init, GLIBC_2_0);
+compat_symbol (libpthread, __old_sem_wait, sem_wait, GLIBC_2_0);
+compat_symbol (libpthread, __old_sem_trywait, sem_trywait, GLIBC_2_0);
+compat_symbol (libpthread, __old_sem_post, sem_post, GLIBC_2_0);
+compat_symbol (libpthread, __old_sem_getvalue, sem_getvalue, GLIBC_2_0);
+compat_symbol (libpthread, __old_sem_destroy, sem_destroy, GLIBC_2_0);
#endif
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c
index f8df39db02..c0658cd3c2 100644
--- a/linuxthreads/pthread.c
+++ b/linuxthreads/pthread.c
@@ -541,7 +541,7 @@ int __pthread_create_2_0(pthread_t *thread, const pthread_attr_t *attr,
}
return __pthread_create_2_1 (thread, attr, start_routine, arg);
}
-symbol_version (__pthread_create_2_0, pthread_create, GLIBC_2.0);
+compat_symbol (libpthread, __pthread_create_2_0, pthread_create, GLIBC_2_0);
#endif
/* Simple operations on thread identifiers */
diff --git a/linuxthreads/weaks.c b/linuxthreads/weaks.c
index a91f5cfb02..f6705f1108 100644
--- a/linuxthreads/weaks.c
+++ b/linuxthreads/weaks.c
@@ -32,7 +32,8 @@ versioned_symbol (libpthread, __libc_pthread_attr_init_2_1, pthread_attr_init,
GLIBC_2_1);
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
weak_alias (__pthread_return_0, __libc_pthread_attr_init_2_0)
-symbol_version (__libc_pthread_attr_init_2_, pthread_attr_init, GLIBC_2.0);
+compat_symbol (libpthread, __libc_pthread_attr_init_2_, pthread_attr_init,
+ GLIBC_2_0);
#endif
weak_alias (__pthread_return_0, pthread_attr_destroy)
weak_alias (__pthread_return_0, pthread_attr_setdetachstate)