aboutsummaryrefslogtreecommitdiff
path: root/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat-native.c3
-rw-r--r--fpu/softfloat-native.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/fpu/softfloat-native.c b/fpu/softfloat-native.c
index 99471b34c..2af07a3f8 100644
--- a/fpu/softfloat-native.c
+++ b/fpu/softfloat-native.c
@@ -2,6 +2,9 @@
context is supported */
#include "softfloat.h"
#include <math.h>
+#if defined(HOST_SOLARIS)
+#include <fenv.h>
+#endif
void set_float_rounding_mode(int val STATUS_PARAM)
{
diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h
index 6b3a20e14..a28c76947 100644
--- a/fpu/softfloat-native.h
+++ b/fpu/softfloat-native.h
@@ -20,7 +20,7 @@
* are defined in <iso/math_c99.h> with a compiler directive
*/
#if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \
- && (__GNUC__ <= 4))) \
+ && (__GNUC__ < 4))) \
|| (defined(__OpenBSD__) && (OpenBSD < 200811))
/*
* C99 7.12.3 classification macros