From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUrgr-0007uG-EU for qemu-devel@nongnu.org; Sun, 17 Aug 2008 19:29:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUrgp-0007u4-10 for qemu-devel@nongnu.org; Sun, 17 Aug 2008 19:29:40 -0400 Received: from [199.232.76.173] (port=45158 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUrgo-0007u1-RT for qemu-devel@nongnu.org; Sun, 17 Aug 2008 19:29:38 -0400 Received: from mail-gx0-f23.google.com ([209.85.217.23]:38352) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUrgo-00022T-Sg for qemu-devel@nongnu.org; Sun, 17 Aug 2008 19:29:38 -0400 Received: by gxk4 with SMTP id 4so3668260gxk.10 for ; Sun, 17 Aug 2008 16:29:37 -0700 (PDT) Message-ID: <48A8B438.6040109@codemonkey.ws> Date: Sun, 17 Aug 2008 18:28:56 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] c99 or not? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: 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 Ben Taylor wrote: > I've been hacking about on qemu again on Solaris 10, which I've run > into an issue. > > in the nbd.h file, it includes stdbool.h, but on Solaris 10, you have > to enable c99 > to get this to compile. > Are you not using GCC? QEMU is not known to support any compilers other than GCC. Perhaps you need to specify -std=gnu99 instead of -std=c99? Regards, Anthony Liguori > This has a rather nasty set of cascading effects, most of which are anonymous > unions in nbd.c and vga_vmware.c, as well asm needing to be __asm > scattered throughout the code. > > Thoughts on this? I already have some prototype code to fix up nbd.c > and vga_vmware.c to get rid of the anonymous unions, but will have some > more work to complete to get a working compile. > > Thanks, > > Ben > > >