diff options
author | Paul Zimmermann <Paul.Zimmermann@inria.fr> | 2020-12-18 09:52:40 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-12-18 10:06:31 +0100 |
commit | 4bb6581aa824dea975c1c54078411c50284cc03e (patch) | |
tree | 4fe53f039fd519f7cd73c26a5d04b53b9f722ff9 /newlib/libm | |
parent | b2f3d593ff6074b945eb0ff925c2740e98a88ae0 (diff) | |
download | newlib-4bb6581aa824dea975c1c54078411c50284cc03e.zip newlib-4bb6581aa824dea975c1c54078411c50284cc03e.tar.gz newlib-4bb6581aa824dea975c1c54078411c50284cc03e.tar.bz2 |
fixes to make compilation succeeds
Diffstat (limited to 'newlib/libm')
-rw-r--r-- | newlib/libm/math/w_tgamma.c | 1 | ||||
-rw-r--r-- | newlib/libm/math/wf_tgamma.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libm/math/w_tgamma.c b/newlib/libm/math/w_tgamma.c index 0f90dd4..52d5d71 100644 --- a/newlib/libm/math/w_tgamma.c +++ b/newlib/libm/math/w_tgamma.c @@ -16,6 +16,7 @@ */ #include "fdlibm.h" +#include <errno.h> #ifndef _DOUBLE_IS_32BITS diff --git a/newlib/libm/math/wf_tgamma.c b/newlib/libm/math/wf_tgamma.c index 80aacf7..504cb4c 100644 --- a/newlib/libm/math/wf_tgamma.c +++ b/newlib/libm/math/wf_tgamma.c @@ -15,6 +15,7 @@ #include "math.h" #include "fdlibm.h" +#include <errno.h> #ifdef __STDC__ float tgammaf(float x) @@ -34,7 +35,6 @@ errno = EDOM; else if (finite(x)) errno = ERANGE; - } return y; #endif } |