about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/fpu/s_fabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc32/fpu/s_fabs.c')
-rw-r--r--sysdeps/sparc/sparc32/fpu/s_fabs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabs.c b/sysdeps/sparc/sparc32/fpu/s_fabs.c
index db5ecf2162..b883e6e862 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fabs.c
+++ b/sysdeps/sparc/sparc32/fpu/s_fabs.c
@@ -1,5 +1,11 @@
+#include <math.h>
+#include <math_ldbl_opt.h>
+
 double __fabs (double x)
 {
   return __builtin_fabs (x);
 }
 weak_alias (__fabs, fabs)
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
+compat_symbol (libm, __fabs, fabsl, GLIBC_2_0);
+#endif