From d0a5a356aa2d5d3e4c62819468cdece25685a53d Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 19 Jun 2012 22:46:57 +0000 Subject: [PATCH] include "config.h" instead of BFD's sysdep.h in d10v/interp.c The change of include file introduces some new warnings about functions being used without a prototype. So a few more system includes have been added to compensate for that. sim/d10v/ChangeLog: * interp.c: #include "config.h" instead of "sysdep.h". Add conditional include of string.h or strings.h, as well as conditional include of stdlib.h. --- sim/d10v/ChangeLog | 6 ++++++ sim/d10v/interp.c | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog index 1266ead605..107befc31c 100644 --- a/sim/d10v/ChangeLog +++ b/sim/d10v/ChangeLog @@ -1,3 +1,9 @@ +2012-06-19 Joel Brobecker + + * interp.c: #include "config.h" instead of "sysdep.h". + Add conditional include of string.h or strings.h, as well as + conditional include of stdlib.h. + 2012-06-15 Joel Brobecker * config.in, configure: Regenerate. diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index 92f161bd95..23db647a33 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -1,5 +1,5 @@ +#include "config.h" #include -#include "sysdep.h" #include "bfd.h" #include "gdb/callback.h" #include "gdb/remote-sim.h" @@ -8,6 +8,18 @@ #include "gdb/sim-d10v.h" #include "gdb/signals.h" +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif /* HAVE_STRING_H */ +#endif /* HAVE_STRINGS_H */ + +#ifdef HAVE_STDLIB_H +#include +#endif + enum _leftright { LEFT_FIRST, RIGHT_FIRST }; static char *myname; -- 2.34.1