Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/libm/math/w_tgamma.c1
-rw-r--r--newlib/libm/math/wf_tgamma.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libm/math/w_tgamma.c b/newlib/libm/math/w_tgamma.c
index 0f90dd4c6..52d5d71d3 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 80aacf757..504cb4c29 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
}