diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-17 23:25:06 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-17 23:25:06 +0000 |
commit | 4b70269e1c1f4ad7470602b31aa1ca3d1da7e2bd (patch) | |
tree | 6ed23906ca66aeccc0ea53b6aa327dc37add86cd /target-i386 | |
parent | af661ad11bbcd00b1eb437ab5032817e7ecf35fc (diff) |
Fix helper.c with isinf on Solaris 9/Sparc, by Ben Taylor.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2698 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index 4656596eb1..968d3991fa 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 {\ |