From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L50zk-0008Pd-Na for qemu-devel@nongnu.org; Tue, 25 Nov 2008 11:42:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L50zf-0008Jh-VH for qemu-devel@nongnu.org; Tue, 25 Nov 2008 11:42:36 -0500 Received: from [199.232.76.173] (port=38422 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L50zf-0008JN-OZ for qemu-devel@nongnu.org; Tue, 25 Nov 2008 11:42:31 -0500 Received: from relay01.mx.bawue.net ([193.7.176.67]:37400) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L50ze-0005FU-Ow for qemu-devel@nongnu.org; Tue, 25 Nov 2008 11:42:31 -0500 Date: Tue, 25 Nov 2008 17:42:27 +0100 From: Thiemo Seufer Subject: Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez) Message-ID: <20081125164227.GB15592@networkno.de> References: <492B10B1.1050409@codemonkey.ws> <20081125100732.GA15592@networkno.de> <492C0D01.8000604@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <492C0D01.8000604@codemonkey.ws> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org Anthony Liguori wrote: > 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. You are right, disregard my comment on that. :-) Thiemo