summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/Versions1
-rw-r--r--math/w_acoshf_compat.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/math/Versions b/math/Versions
index 31818c273e..91cd7ea08d 100644
--- a/math/Versions
+++ b/math/Versions
@@ -689,6 +689,7 @@ libm {
GLIBC_2.43 {
# No SVID compatible error handling.
acosf;
+ acoshf;
asinf;
log10f;
}
diff --git a/math/w_acoshf_compat.c b/math/w_acoshf_compat.c
index aa5da5c436..104ce08aaf 100644
--- a/math/w_acoshf_compat.c
+++ b/math/w_acoshf_compat.c
@@ -21,10 +21,10 @@
#include <libm-alias-float.h>
-#if LIBM_SVID_COMPAT
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_43)
/* wrapper acoshf */
float
-__acoshf (float x)
+__acosh_compatf (float x)
{
if (__builtin_expect (isless (x, 1.0f), 0) && _LIB_VERSION != _IEEE_)
/* acosh(x<1) */
@@ -32,5 +32,5 @@ __acoshf (float x)
return __ieee754_acoshf (x);
}
-libm_alias_float (__acosh, acosh)
+compat_symbol (libm, __acosh_compatf, acoshf, GLIBC_2_0);
#endif