diff options
author | Michael Meissner <gnu@the-meissners.org> | 1997-02-11 18:48:40 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1997-02-11 18:48:40 +0000 |
commit | c45adab0b9297709efac3886722e2b446bd3a7f9 (patch) | |
tree | c0aa7ec7ff7818320440c91659c5f6e92508c942 /sim | |
parent | 9e40b4f1475c5210fe61cdd23762215cbaca4aca (diff) | |
download | gdb-c45adab0b9297709efac3886722e2b446bd3a7f9.zip gdb-c45adab0b9297709efac3886722e2b446bd3a7f9.tar.gz gdb-c45adab0b9297709efac3886722e2b446bd3a7f9.tar.bz2 |
Silence warnings in ppc simulator
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/callback.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c index 764d4b6..cc4809a 100644 --- a/sim/common/callback.c +++ b/sim/common/callback.c @@ -21,6 +21,9 @@ /* This file provides a standard way for targets to talk to the host OS level. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "ansidecl.h" #ifdef ANSI_PROTOTYPES #include <stdarg.h> @@ -37,6 +40,12 @@ #include "callback.h" #include "targ-vals.h" +#ifndef HAVE_UNISTD_H +#include <unistd.h> +#endif + +extern int system PARAMS ((const char *)); + static int os_init PARAMS ((host_callback *)); static int os_shutdown PARAMS ((host_callback *)); static int os_unlink PARAMS ((host_callback *, const char *)); @@ -334,7 +343,7 @@ os_error (p, va_alist) fprintf (stderr, "\n"); va_end (args); - exit (EXIT_FAILURE); + exit (1); } host_callback default_callback = |