diff options
Diffstat (limited to 'gdb/gdbserver/utils.c')
-rw-r--r-- | gdb/gdbserver/utils.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 2130d17..88215aa 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -22,6 +22,13 @@ #include "server.h" #include <stdio.h> #include <string.h> +#include <stdlib.h> +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_MALLOC_H +#include <malloc.h> +#endif /* Generally useful subroutines used throughout the program. */ @@ -32,9 +39,6 @@ void perror_with_name (char *string) { -#ifndef STDC_HEADERS - extern int errno; -#endif const char *err; char *combined; |