about summary refs log tree commit diff
path: root/math/test-matherr-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/test-matherr-2.c')
-rw-r--r--math/test-matherr-2.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/math/test-matherr-2.c b/math/test-matherr-2.c
index c2fc5e63c8..7b5f49cd3d 100644
--- a/math/test-matherr-2.c
+++ b/math/test-matherr-2.c
@@ -22,8 +22,11 @@
 
 #include <math-svid-compat.h>
 #include <shlib-compat.h>
-#undef matherr
-#undef _LIB_VERSION
+
+#if TEST_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
+
+# undef matherr
+# undef _LIB_VERSION
 compat_symbol_reference (libm, matherr, matherr, GLIBC_2_0);
 compat_symbol_reference (libm, _LIB_VERSION, _LIB_VERSION, GLIBC_2_0);
 
@@ -45,5 +48,12 @@ do_test (void)
   acos (2.0);
   return fail;
 }
+#else
+static int
+do_test (void)
+{
+  return 77;
+}
+#endif
 
 #include <support/test-driver.c>