From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4z08-0003GB-E9 for qemu-devel@nongnu.org; Tue, 25 Nov 2008 09:34:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4z06-0003EI-H0 for qemu-devel@nongnu.org; Tue, 25 Nov 2008 09:34:51 -0500 Received: from [199.232.76.173] (port=46964 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4z06-0003Ds-3k for qemu-devel@nongnu.org; Tue, 25 Nov 2008 09:34:50 -0500 Received: from yx-out-1718.google.com ([74.125.44.156]:8364) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4z05-00088u-LH for qemu-devel@nongnu.org; Tue, 25 Nov 2008 09:34:49 -0500 Received: by yx-out-1718.google.com with SMTP id 3so997765yxi.82 for ; Tue, 25 Nov 2008 06:34:49 -0800 (PST) Message-ID: <492C0D01.8000604@codemonkey.ws> Date: Tue, 25 Nov 2008 08:34:41 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez) References: <492B10B1.1050409@codemonkey.ws> <20081125100732.GA15592@networkno.de> In-Reply-To: <20081125100732.GA15592@networkno.de> 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: Thiemo Seufer Cc: qemu-devel@nongnu.org Thiemo Seufer wrote: > It shouldn't try to compile, for the sake of cross portability. Rather > something like > > gcc -E -dM -xc /dev/null |grep __linux__ > > This checks if the compiler in use is a Linux compiler. > Good enough, but I wonder why you think it shouldn't compile for the sake of cross portability? The cross compiler should be able to create an executable. You don't have to run it, you just have to rely on #error causing compilation to fail. Regards, Anthony Liguori > Thiemo >