blob: 5240df822a31eed028c840ed65e32a98b771b20f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- gdb/sparc-nat.c.orig 2003-05-19 17:55:02.000000000 -0400
+++ gdb/sparc-nat.c 2003-05-19 17:55:42.000000000 -0400
@@ -33,6 +33,13 @@
#include <sys/ptrace.h>
#include <sys/wait.h>
#ifdef __linux__
+/* Sadly, <sys/ucontext.h> conflicts with <asm/reg.h> on Linux. And
+ -D_GNU_SOURCE brings in <sys/ucontext.h> implicitly with <signal.h>.
+ Hack around this. */
+#undef FPU_REGS_TYPE
+#define fpu asm_reg_fpu
+#define fq asm_reg_fq
+#define fpq asm_reg_fpq
#include <asm/reg.h>
#else
#include <machine/reg.h>
|