aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-i386/helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 4656596..968d399 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -21,6 +21,11 @@
//#define DEBUG_PCALL
+#if defined(__sparc__) && (HOST_SOLARIS < 10)
+#include <ieeefp.h>
+#define isinf(x) (fpclass(x) == FP_NINF || fpclass(x) == FP_PINF)
+#endif
+
#if 0
#define raise_exception_err(a, b)\
do {\