From: Masaki Muranaka Date: Sun, 14 Feb 2010 07:15:57 +0000 (+0000) Subject: * interp.c: Don't include sysdep.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22e041e26738fc4fab6cbabba9c5ce88e535a83f;p=binutils-gdb.git * 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. --- diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog index 16d3563b0db..fb8e8ff3ca5 100644 --- a/sim/sh/ChangeLog +++ b/sim/sh/ChangeLog @@ -1,3 +1,9 @@ +2010-01-12 Masaki Muranaka + + * 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 * configure: Regenerate. diff --git a/sim/sh/interp.c b/sim/sh/interp.c index a2472adb026..2b2044430fc 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -20,6 +20,8 @@ #include "config.h" +#include +#include #include #ifdef HAVE_UNISTD_H #include @@ -34,7 +36,22 @@ # endif #endif -#include "sysdep.h" +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif + +#ifdef HAVE_STDLIB_H +#include +#endif + +#ifdef HAVE_SYS_STAT_H +#include +#endif + #include "bfd.h" #include "gdb/callback.h" #include "gdb/remote-sim.h"