diff options
author | Randolph Chung <tausq@debian.org> | 2004-06-07 15:19:08 +0000 |
---|---|---|
committer | Randolph Chung <tausq@debian.org> | 2004-06-07 15:19:08 +0000 |
commit | 9a727a3c4fd3be05fc8224bec1a8c3ea5f600ca2 (patch) | |
tree | 7abd6081a214a585f50690efb29bfa50c08c9cd4 /gdb/hppa-linux-nat.c | |
parent | 86fe4aaa4017161bff40ce35a8eda8618d55020e (diff) | |
download | gdb-9a727a3c4fd3be05fc8224bec1a8c3ea5f600ca2.zip gdb-9a727a3c4fd3be05fc8224bec1a8c3ea5f600ca2.tar.gz gdb-9a727a3c4fd3be05fc8224bec1a8c3ea5f600ca2.tar.bz2 |
2004-06-07 Guy Martin <gmsoft@gentoo.org>
Committed by Randolph Chung.
* hppa-linux-nat.c: Include the correct version of the header file
depending on the kernel version.
Diffstat (limited to 'gdb/hppa-linux-nat.c')
-rw-r--r-- | gdb/hppa-linux-nat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index d88c142..c15e1ab 100644 --- a/gdb/hppa-linux-nat.c +++ b/gdb/hppa-linux-nat.c @@ -27,7 +27,13 @@ #include <sys/procfs.h> #include <sys/ptrace.h> #include <string.h> +#include <linux/version.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,43) +#include <asm/offset.h> +#else #include <asm/offsets.h> +#endif #include "hppa-tdep.h" |