From 0bcce674a7c00268afb2ee3ddc84a1a2fa1ea870 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 26 Jun 2017 17:56:14 +0000 Subject: libgo: redefine ia64 struct names around linux/ptrace.h Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762. Patch by Andreas Schwab. Reviewed-on: https://go-review.googlesource.com/46711 From-SVN: r249662 --- libgo/sysinfo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libgo/sysinfo.c') 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 #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 +#undef ia64_fpreg +#undef pt_all_user_regs #endif #if defined(HAVE_LINUX_RTNETLINK_H) #include -- cgit v1.1