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.
+2012-06-19 Joel Brobecker <brobecker@adacore.com>
+
+ * 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 <brobecker@adacore.com>
* config.in, configure: Regenerate.
+#include "config.h"
#include <signal.h>
-#include "sysdep.h"
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"
#include "gdb/sim-d10v.h"
#include "gdb/signals.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif /* HAVE_STRING_H */
+#endif /* HAVE_STRINGS_H */
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
enum _leftright { LEFT_FIRST, RIGHT_FIRST };
static char *myname;