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 7dd4f1c5c6fd9391e91f0219684a46d66a2ecfe5..35c043f1fd60a469e71ea5402dcc910d138cf31a 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 d88c142dd0a61100681cbc11f47bcc657f22d48e..c15e1ab7122c80f77f6755f98a1f41ae1881dc11 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"