commit | 1b4c2bcaa96f7f40538fd8fff308ad92ea6f482e | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Jun 26 10:54:27 2017 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jun 26 17:55:39 2017 +0000 |
tree | 46adde21d9889c5decf40004497499ec1c970606 | |
parent | 0a20181d00d43a423c55f4e772b759fba0619478 [diff] |
libgo: redefine ia64 struct names around linux/ptrace.h Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762. Patch by Andreas Schwab. Change-Id: I4b2f0bc3a403020f7d5a230f7defbf8ad380cfb8 Reviewed-on: https://go-review.googlesource.com/46711 Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index a1afc7d..1ba27b1 100644 --- a/libgo/sysinfo.c +++ b/libgo/sysinfo.c
@@ -103,7 +103,12 @@ #include <linux/netlink.h> #endif #if defined(HAVE_LINUX_PTRACE_H) +/* Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762 . */ +#define ia64_fpreg pt_ia64_fpreg +#define pt_all_user_regs pt_ia64_all_user_regs #include <linux/ptrace.h> +#undef ia64_fpreg +#undef pt_all_user_regs #endif #if defined(HAVE_LINUX_RTNETLINK_H) #include <linux/rtnetlink.h>