From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KknkT-0002V0-Lm for qemu-devel@nongnu.org; Tue, 30 Sep 2008 18:31:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KknkO-0002Uc-Sl for qemu-devel@nongnu.org; Tue, 30 Sep 2008 18:31:17 -0400 Received: from [199.232.76.173] (port=57496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KknkO-0002UZ-NB for qemu-devel@nongnu.org; Tue, 30 Sep 2008 18:31:12 -0400 Received: from pop-satin.atl.sa.earthlink.net ([207.69.195.63]:56440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KknkO-0007uf-OF for qemu-devel@nongnu.org; Tue, 30 Sep 2008 18:31:12 -0400 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=[192.168.0.90]) by pop-satin.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1KknkN-0000sw-00 for qemu-devel@nongnu.org; Tue, 30 Sep 2008 18:31:11 -0400 Message-ID: <48E2A8AF.7070907@earthlink.net> Date: Tue, 30 Sep 2008 18:31:11 -0400 From: Robert Reif MIME-Version: 1.0 Subject: Re: [Qemu-devel] PATCH: fix usb-linux.c compile orror References: <48DFD2D9.6060205@earthlink.net> <48E0FEB4.8000208@codemonkey.ws> <48E178BE.70508@earthlink.net> <48E1830D.1000903@codemonkey.ws> <20080930100908.N47083@stanley.csl.cornell.edu> <48E23DAF.8070509@codemonkey.ws> In-Reply-To: <48E23DAF.8070509@codemonkey.ws> 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 Anthony Liguori wrote: > Vince Weaver wrote: >> >> On Mon, 29 Sep 2008, Anthony Liguori wrote: >>> Robert Reif wrote: >>>> RH9 system (2.4.20-31.9smp). >>> >>> Huh. I'm amazed it compiles with just that change on such an old >>> kernel. >> >> I have similar problems compiling on a SuSE 10.1 system which really >> isn't that old. Since I only use linux-user I'd been too lazy to >> investigate the problem. >> >> Why should Qemu not build on older systems? I'd imagine that linux >> 2.4 / 2.6 compatability would be easier to handle than linux /OSX >> /Windows compatability. > > I think we should support 2.4 kernels FWIW. I'm just waiting for > someone to send a patch that adds a configure check instead of > breaking the build for newer kernels. > > I think the best way to do it would be to try and detect the right > header files for usb pass through in configure, and disable > usb-linux.c entirely if they aren't available. > > Regards, > > Anthony LIguori > >> Vince >> >> The problem in this instance is that a structure that usb uses was copied from a linux header file so the c file wasn't dependent on linux headers. Unfortunately the c file wasn't changed to use the new structure.