about summary refs log tree commit diff
path: root/src/math
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-16 21:20:53 -0400
committerRich Felker <dalias@aerifal.cx>2012-03-16 21:20:53 -0400
commit8c071f872b2844ca297275176047f8d23eec96a7 (patch)
tree82206c8781f2c07c9b59e805e758550b3797607b /src/math
parent1a3dce4184895be87b32dcb7c891c5cb87d88a95 (diff)
downloadmusl-8c071f872b2844ca297275176047f8d23eec96a7.tar.gz
musl-8c071f872b2844ca297275176047f8d23eec96a7.tar.xz
musl-8c071f872b2844ca297275176047f8d23eec96a7.zip
other side of the signgam namespace fix: use the internal name
Diffstat (limited to 'src/math')
-rw-r--r--src/math/lgamma.c3
-rw-r--r--src/math/lgammaf.c3
-rw-r--r--src/math/lgammal.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/src/math/lgamma.c b/src/math/lgamma.c
index 17b5aff0..d8b85312 100644
--- a/src/math/lgamma.c
+++ b/src/math/lgamma.c
@@ -1,10 +1,11 @@
 #include "libm.h"
 
+extern int __signgam;
 double __lgamma_r(double, int *);
 
 double lgamma(double x)
 {
-	return __lgamma_r(x, &signgam);
+	return __lgamma_r(x, &__signgam);
 }
 
 // FIXME
diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c
index 93253534..b3d996cf 100644
--- a/src/math/lgammaf.c
+++ b/src/math/lgammaf.c
@@ -1,10 +1,11 @@
 #include "libm.h"
 
+extern int __signgam;
 float __lgammaf_r(float, int *);
 
 float lgammaf(float x)
 {
-	return __lgammaf_r(x, &signgam);
+	return __lgammaf_r(x, &__signgam);
 }
 
 // FIXME
diff --git a/src/math/lgammal.c b/src/math/lgammal.c
index 5dd851a6..ec7c9a04 100644
--- a/src/math/lgammal.c
+++ b/src/math/lgammal.c
@@ -388,9 +388,11 @@ long double __lgammal_r(long double x, int *sg) {
 }
 #endif
 
+extern int __signgam;
+
 long double lgammal(long double x)
 {
-	return __lgammal_r(x, &signgam);
+	return __lgammal_r(x, &__signgam);
 }
 
 weak_alias(__lgammal_r, lgammal_r);