This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfa] Check kernel version for header
- From: Randolph Chung <randolph at tausq dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 6 Jun 2004 18:35:34 -0700
- Subject: [patch/rfa] Check kernel version for header
- Reply-to: Randolph Chung <randolph at tausq dot org>
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/