* interp.c: Don't include sysdep.h.
authorMasaki Muranaka <monaka@sourceware.org>
Sun, 14 Feb 2010 07:15:57 +0000 (07:15 +0000)
committerMasaki Muranaka <monaka@sourceware.org>
Sun, 14 Feb 2010 07:15:57 +0000 (07:15 +0000)
  Include stdio.h and errno.h.
  Include string.h strings.h stdlib.h sys/stat.h if present.

sim/sh/ChangeLog
sim/sh/interp.c

index 16d3563b0db1e128802e4e3e8c2c039c0e501825..fb8e8ff3ca5b827c4aebfd81acea8cf7a26456b7 100644 (file)
@@ -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.
index a2472adb02699522a5e29dded0d7649e164a4358..2b2044430fcc1ce06398b642ca984e94d7e1fce6 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "config.h"
 
+#include <stdio.h>
+#include <errno.h>
 #include <signal.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 # 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"