about summary refs log tree commit diff
path: root/math/w_logf_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_logf_compat.c')
-rw-r--r--math/w_logf_compat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/w_logf_compat.c b/math/w_logf_compat.c
index 7cdacdf921..936b3a6e67 100644
--- a/math/w_logf_compat.c
+++ b/math/w_logf_compat.c
@@ -23,10 +23,10 @@
 #include <libm-alias-float.h>
 
 
-#if LIBM_SVID_COMPAT
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
 /* wrapper logf(x) */
 float
-__logf (float x)
+__logf_compat (float x)
 {
   if (__builtin_expect (islessequal (x, 0.0f), 0) && _LIB_VERSION != _IEEE_)
     {
@@ -44,5 +44,5 @@ __logf (float x)
 
   return  __ieee754_logf (x);
 }
-libm_alias_float (__log, log)
+compat_symbol (libm, __logf_compat, logf, GLIBC_2_0);
 #endif