This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch][sim] Fix microblaze sim build
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Michael Eager <eager at eagercon dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 6 Jun 2012 13:10:13 +0200
- Subject: [patch][sim] Fix microblaze sim build
Hello,
I needed the attached patch to build the microblaze sim.
Without the patch, bfd.h gives an #error that config.h should be
included before it.
Could you please see if this is OK, and commit it if so?
Ciao!
Steven
Index: src/sim/microblaze/interp.c
===================================================================
RCS file: /cvs/src/src/sim/microblaze/interp.c,v
retrieving revision 1.7
diff -u -r1.7 interp.c
--- interp.c 4 Jan 2012 08:28:20 -0000 1.7
+++ interp.c 6 Jun 2012 11:06:10 -0000
@@ -23,6 +23,7 @@
#include <sys/times.h>
#include <sys/param.h>
#include <netinet/in.h> /* for byte ordering macros */
+#include "config.h"
#include "bfd.h"
#include "gdb/callback.h"
#include "libiberty.h"