diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-11-02 04:44:47 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-11-02 04:44:47 +0000 |
commit | 5c44784c11ecc8febfff615b88496c56c9ad5274 (patch) | |
tree | 74f9079f5b0ddae1182abf087af8adc02103e149 /gdb/gdbserver/gdbreplay.c | |
parent | 9503fd8735ec438fcb2fca34afa276e3e6ca94f5 (diff) | |
download | gdb-5c44784c11ecc8febfff615b88496c56c9ad5274.zip gdb-5c44784c11ecc8febfff615b88496c56c9ad5274.tar.gz gdb-5c44784c11ecc8febfff615b88496c56c9ad5274.tar.bz2 |
import gdb-1999-11-01 snapshot
Diffstat (limited to 'gdb/gdbserver/gdbreplay.c')
-rw-r--r-- | gdb/gdbserver/gdbreplay.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index 5773962..9e88a75 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "config.h" #include <stdio.h> #include <sys/file.h> #include <netinet/in.h> @@ -28,6 +29,7 @@ #include <signal.h> #include <ctype.h> #include <fcntl.h> +#include <errno.h> /* Sort of a hack... */ #define EOL (EOF - 1) @@ -42,10 +44,12 @@ void perror_with_name (string) char *string; { +#ifndef STDC_HEADERS extern int sys_nerr; extern char *sys_errlist[]; extern int errno; - char *err; +#endif + const char *err; char *combined; err = (errno < sys_nerr) ? sys_errlist[errno] : "unknown error"; |