aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMasaki Muranaka <monaka@sourceware.org>2010-02-14 07:15:57 +0000
committerMasaki Muranaka <monaka@sourceware.org>2010-02-14 07:15:57 +0000
commit22e041e26738fc4fab6cbabba9c5ce88e535a83f (patch)
treeb0e36219b6aa7ef8c8212c86fcf98bb2a210c370 /sim
parentbf6adea8751ef5fd8a13ed35c9e33a442fd8a423 (diff)
downloadbinutils-22e041e26738fc4fab6cbabba9c5ce88e535a83f.zip
binutils-22e041e26738fc4fab6cbabba9c5ce88e535a83f.tar.gz
binutils-22e041e26738fc4fab6cbabba9c5ce88e535a83f.tar.bz2
* interp.c: Don't include sysdep.h.
Include stdio.h and errno.h. Include string.h strings.h stdlib.h sys/stat.h if present.
Diffstat (limited to 'sim')
-rw-r--r--sim/sh/ChangeLog6
-rw-r--r--sim/sh/interp.c19
2 files changed, 24 insertions, 1 deletions
diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog
index 16d3563..fb8e8ff 100644
--- a/sim/sh/ChangeLog
+++ b/sim/sh/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-12 Masaki Muranaka <monaka@monami-software.com>
+
+ * interp.c: Don't include sysdep.h.
+ Include stdio.h and errno.h.
+ Include string.h strings.h stdlib.h sys/stat.h if present.
+
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index a2472ad..2b20444 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -20,6 +20,8 @@
#include "config.h"
+#include <stdio.h>
+#include <errno.h>
#include <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -34,7 +36,22 @@
# endif
#endif
-#include "sysdep.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"