From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15136 invoked by alias); 7 Jun 2004 01:35:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15127 invoked from network); 7 Jun 2004 01:35:31 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by sourceware.org with SMTP; 7 Jun 2004 01:35:31 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id 45A66CD29F; Sun, 6 Jun 2004 18:35:34 -0700 (PDT) Date: Mon, 07 Jun 2004 01:35:00 -0000 From: Randolph Chung To: gdb-patches@sources.redhat.com Subject: [patch/rfa] Check kernel version for header Message-ID: <20040607013534.GA601@tausq.org> Reply-To: Randolph Chung Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00109.txt.bz2 I have a request from the Gentoo maintainers to include this patch. I don't know if there's any policy/precedence for similar patches that depends on kernel versions for header files. comments? randolph 2004-06-06 Guy Martin * hppa-linux-nat.c: Include the correct version of the header file depending on the kernel version. Index: hppa-linux-nat.c =================================================================== RCS file: /cvs/src/src/gdb/hppa-linux-nat.c,v retrieving revision 1.3 diff -u -p -r1.3 hppa-linux-nat.c --- hppa-linux-nat.c 8 May 2004 03:27:24 -0000 1.3 +++ hppa-linux-nat.c 7 Jun 2004 01:28:11 -0000 @@ -27,7 +27,13 @@ #include #include #include +#include + +#if LINUX_VERSION_CODE < 0x02052c +#include +#else #include +#endif #include "hppa-tdep.h" -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/