about summary refs log tree commit diff
path: root/math/w_tgammal_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_tgammal_compat.c')
-rw-r--r--math/w_tgammal_compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/w_tgammal_compat.c b/math/w_tgammal_compat.c
index 306f672077..c0e442955b 100644
--- a/math/w_tgammal_compat.c
+++ b/math/w_tgammal_compat.c
@@ -23,6 +23,7 @@
 #include <math_private.h>
 #include <math-svid-compat.h>
 
+#if LIBM_SVID_COMPAT
 long double
 __tgammal(long double x)
 {
@@ -44,3 +45,4 @@ __tgammal(long double x)
 	return local_signgam < 0 ? - y : y;
 }
 weak_alias (__tgammal, tgammal)
+#endif