OSDN Git Service

2004-06-07 Guy Martin <gmsoft@gentoo.org>
authorRandolph Chung <tausq@debian.org>
Mon, 7 Jun 2004 15:19:08 +0000 (15:19 +0000)
committerRandolph Chung <tausq@debian.org>
Mon, 7 Jun 2004 15:19:08 +0000 (15:19 +0000)
Committed by Randolph Chung.
* hppa-linux-nat.c: Include the correct version of the header file
depending on the kernel version.

gdb/ChangeLog
gdb/hppa-linux-nat.c

index 7dd4f1c..35c043f 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2004-06-06  Randolph Chung  <tausq@debian.org>
 
        * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
index d88c142..c15e1ab 100644 (file)
 #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"