aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-02 20:21:35 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-02 20:21:35 +0000
commitc494cadde621b6d371d03df79486176c10bea303 (patch)
tree03d8d63bee68e226acc43019ff8f71206b243c2a /sim/ppc/sim_calls.c
parent183e1f0d7cfee05ed0c39f36a1934e4476546436 (diff)
downloadgdb-c494cadde621b6d371d03df79486176c10bea303.zip
gdb-c494cadde621b6d371d03df79486176c10bea303.tar.gz
gdb-c494cadde621b6d371d03df79486176c10bea303.tar.bz2
Use autoconf correctly; provide more stats with -I
Diffstat (limited to 'sim/ppc/sim_calls.c')
-rw-r--r--sim/ppc/sim_calls.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index e262e05..8121c94 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -21,13 +21,23 @@
#include <signal.h> /* FIXME - should be machine dependant version */
#include <stdarg.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#include "basics.h"
#include "psim.h"
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
#include "../../gdb/defs.h"
#include "devices.h"