gdb/
[deliverable/binutils-gdb.git] / gdb / gdbserver / utils.c
index 2130d1766c408b8689d5c977d2bcc784d58d156a..88215aa22219f0e0ea6a48c62b67a926338ae183 100644 (file)
 #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;
 
This page took 0.023752 seconds and 4 git commands to generate.