aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-17 23:34:17 +0000
committerMike Frysinger <vapier@gentoo.org>2012-06-17 23:34:17 +0000
commit266879991149e529ed25bcbcd610582a2fbbdc6b (patch)
tree0dff7898778563beeab7ca6f2e0927d3ae13eb34 /sim
parenta6c2b87eec205ad6c5958eeb1711a7eb1638a51f (diff)
downloadgdb-266879991149e529ed25bcbcd610582a2fbbdc6b.zip
gdb-266879991149e529ed25bcbcd610582a2fbbdc6b.tar.gz
gdb-266879991149e529ed25bcbcd610582a2fbbdc6b.tar.bz2
sim: cr16: include config.h rather than sysdep.h from bfd
Diffstat (limited to 'sim')
-rw-r--r--sim/cr16/ChangeLog5
-rw-r--r--sim/cr16/interp.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog
index 8c3c5a1..ca3f5b1 100644
--- a/sim/cr16/ChangeLog
+++ b/sim/cr16/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-17 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c: Include config.h first. Also include stdlib.h and
+ string.h so we can drop the sysdep.h include.
+
2012-06-15 Joel Brobecker <brobecker@adacore.com>
* config.in, configure: Regenerate.
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c
index 86c4c0d..606a161 100644
--- a/sim/cr16/interp.c
+++ b/sim/cr16/interp.c
@@ -17,8 +17,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "config.h"
#include <signal.h>
-#include "sysdep.h"
+#include <stdlib.h>
+#include <string.h>
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"