Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZ0aG-0000pa-Qc for qemu-devel@nongnu.org; Fri, 29 Aug 2008 05:48:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZ0aF-0000oJ-DY for qemu-devel@nongnu.org; Fri, 29 Aug 2008 05:47:59 -0400 Received: from [199.232.76.173] (port=34689 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ0aF-0000o6-1J for qemu-devel@nongnu.org; Fri, 29 Aug 2008 05:47:59 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:14379) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZ0aE-0001fz-Or for qemu-devel@nongnu.org; Fri, 29 Aug 2008 05:47:58 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18615.50622.311395.372416@mariner.uk.xensource.com> Date: Fri, 29 Aug 2008 10:47:42 +0100 Subject: Re: [Qemu-devel] [PATCH] usb-linux.c: #define __user to work around broken Linux headers In-Reply-To: <20080828204114.GD3229@networkno.de> References: <18614.53575.679530.36194@mariner.uk.xensource.com> <48B70534.40103@codemonkey.ws> <20080828204114.GD3229@networkno.de> From: Ian Jackson 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 Thiemo Seufer writes ("Re: [Qemu-devel] [PATCH] usb-linux.c: #define __user to work around broken Linux headers"): > It was rejected because distros should fix their broken headers instead. I think this is an absurd response. On that theory, why do we bother with any of the other portability stuff in qemu ? We could do away with the hideously complicated emulation of openpty and just say `distros should get openpty'. Why do we bother with special cases like this one (block-raw-posix.c): #if defined(__GLIBC__) && defined(__linux__) { /* XXX: aio thread exit seems to hang on RedHat 9 and this init seems to fix the problem. */ etc. etc. I agree that distros should fix their broken headers. Indeed none of the systems I have here and which I use for testing have headers which are broken in this way. However, it would be nice to be able to make qemu work on old systems, even if those systems have bugs. Unless you have a time machine which we can use to fix up this kind of thing in (say) Fedora Core 6 ? Ian.