diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-03-16 21:18:48 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-03-16 21:18:48 -0400 |
commit | 1a3dce4184895be87b32dcb7c891c5cb87d88a95 (patch) | |
tree | 4b3c094a6bc213e13351d01ffc93c6e03f696853 /src/math/signgam.c | |
parent | de7db6e927e568c52eaffeb51d7726a094ed0180 (diff) | |
download | musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.tar.gz musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.tar.bz2 musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.tar.xz musl-1a3dce4184895be87b32dcb7c891c5cb87d88a95.zip |
make signgam a weak alias for an internal symbol
otherwise, the standard C lgamma function will clobber a symbol in the
namespace reserved for the application.
Diffstat (limited to 'src/math/signgam.c')
-rw-r--r-- | src/math/signgam.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/math/signgam.c b/src/math/signgam.c index 12cc32d7..b39ceb04 100644 --- a/src/math/signgam.c +++ b/src/math/signgam.c @@ -1,2 +1,5 @@ -#include <math.h> -int signgam = 0; +#include "libm.h" + +int __signgam = 0; + +weak_alias(__signgam, signgam); |