Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Randolph Chung <randolph@tausq.org>
To: gdb-patches@sources.redhat.com
Subject: [patch/rfa] Check kernel version for header
Date: Mon, 07 Jun 2004 01:35:00 -0000	[thread overview]
Message-ID: <20040607013534.GA601@tausq.org> (raw)

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  <gmsoft@gentoo.org>

	* 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 <sys/procfs.h>
 #include <sys/ptrace.h>
 #include <string.h>
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < 0x02052c
+#include <asm/offset.h>
+#else
 #include <asm/offsets.h>
+#endif
 
 #include "hppa-tdep.h"
 
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


             reply	other threads:[~2004-06-07  1:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-07  1:35 Randolph Chung [this message]
2004-06-07 14:06 ` Andrew Cagney
2004-06-07 15:05   ` Randolph Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040607013534.GA601@tausq.org \
    --to=randolph@tausq.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox