This fixes a linker error for target-i386/helper.c on Solaris 9/Sparc,
as Solaris 9/Sparc does not include the isinf function or macro.

Due to the use of libsunmath on Solaris 9/X86, this feature is
not needed.

Ben
--- qemu.ORIG/target-i386/helper.c	2007-04-03 12:38:34.000000000 -0400
+++ qemu/target-i386/helper.c	2007-04-05 16:57:31.311064000 -0400
@@ -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 {\

Reply via email to