aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index bd4bd68..89fe050 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -69,9 +69,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/stat.h>
#include <strings.h>
+/* Undo brain-damage in some <strings.h> that '#define index strchr'.
+ Note that tm-mips.h includes coff/sym.h, which has a structure with a
+ member named 'index'. */
+#undef index
+
#include "coff/mips.h" /* COFF-like aspects of ecoff files */
-#include "coff/sym.h" /* Symbol structures in ecoff files */
-#include "coff/symconst.h" /* Manifest constants in ecoff sym structures */
#include "coff/ecoff-ext.h" /* External forms of ecoff sym structures */
#include "libaout.h" /* FIXME Secret internal BFD stuff for a.out */