Include <stdlib.h> if available. Don't declare errno if it's a macro.
authorAndreas Schwab <schwab@suse.de>
Mon, 30 Aug 1999 15:07:30 +0000 (15:07 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 30 Aug 1999 15:07:30 +0000 (15:07 +0000)
lib-src/emacsserver.c

index e58cf23..541e57d 100644 (file)
@@ -65,7 +65,13 @@ void fatal_error ();
 #include <unistd.h>
 #endif
 
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
+
+#ifndef errno
 extern int errno;
+#endif
 
 /* Copied from src/process.c */
 #ifdef FD_SET