aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_attr_setstackaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_attr_setstackaddr.c')
-rw-r--r--nptl/pthread_attr_setstackaddr.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/nptl/pthread_attr_setstackaddr.c b/nptl/pthread_attr_setstackaddr.c
index 08633b5..328339e 100644
--- a/nptl/pthread_attr_setstackaddr.c
+++ b/nptl/pthread_attr_setstackaddr.c
@@ -18,7 +18,7 @@
#include <errno.h>
#include "pthreadP.h"
-
+#include <shlib-compat.h>
int
__pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)
@@ -36,7 +36,12 @@ __pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)
return 0;
}
-strong_alias (__pthread_attr_setstackaddr, pthread_attr_setstackaddr)
+versioned_symbol (libc, __pthread_attr_setstackaddr,
+ pthread_attr_setstackaddr, GLIBC_2_34);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_attr_setstackaddr,
+ pthread_attr_setstackaddr, GLIBC_2_1);
+#endif
link_warning (pthread_attr_setstackaddr,
"the use of `pthread_attr_setstackaddr' is deprecated, use `pthread_attr_setstack'")