Skip to contentSkip to conversation

Patch: fix helper.c with isinf on Solaris 9/Sparc

Qemu-devel Ben Taylor 1 participant 1 message Apr 5, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

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

target-i386/helper.c +5 -0
@@ -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 {\