about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S')
-rw-r--r--sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S b/sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S
index 062faba170..2fd0695552 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
+#include <math_ldbl_opt.h>
 
 	/* We pop constants into the FPU registers using the incoming
 	   argument stack slots, since this avoid having to use any PIC
@@ -65,3 +66,7 @@ ENTRY (__lrint)
 	 ld	[%sp + 72], %o0
 END (__lrint)
 weak_alias (__lrint, lrint)
+
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
+compat_symbol (libm, __lrint, lrintl, GLIBC_2_1)
+#endif