Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZZAK-0006Zu-Lf for qemu-devel@nongnu.org; Thu, 05 Apr 2007 17:06:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZZAI-0006Za-BG for qemu-devel@nongnu.org; Thu, 05 Apr 2007 17:06:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZZAI-0006ZX-0f for qemu-devel@nongnu.org; Thu, 05 Apr 2007 17:06:42 -0400 Received: from eastrmmtao107.cox.net ([68.230.240.59]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZZ6r-0006NS-Ip for qemu-devel@nongnu.org; Thu, 05 Apr 2007 17:03:10 -0400 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao107.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070405210307.PBPM13459.eastrmmtao107.cox.net@eastrmimpo02.cox.net> for ; Thu, 5 Apr 2007 17:03:07 -0400 Message-ID: <24601185.1175806986453.JavaMail.root@eastrmwml05.mgt.cox.net> Date: Thu, 5 Apr 2007 17:03:06 -0400 From: Ben Taylor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2537_18876681.1175806986424" Subject: [Qemu-devel] Patch: fix helper.c with isinf on Solaris 9/Sparc Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_2537_18876681.1175806986424 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 ------=_Part_2537_18876681.1175806986424 Content-Type: text/x-patch; name=qemu-solsparc9-isinf.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=qemu-solsparc9-isinf.diff --- 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 +#define isinf(x) (fpclass(x) == FP_NINF || fpclass(x) == FP_PINF) +#endif + #if 0 #define raise_exception_err(a, b)\ do {\ ------=_Part_2537_18876681.1175806986424--