diff lib-src/emacsserver.c @ 25448:95f7147cb572

Include <stdlib.h> if available. Don't declare errno if it's a macro.
author Andreas Schwab <schwab@suse.de>
date Mon, 30 Aug 1999 15:07:30 +0000
parents 89be69860eeb
children 134b57acef68
line wrap: on
line diff
--- a/lib-src/emacsserver.c	Mon Aug 30 15:05:17 1999 +0000
+++ b/lib-src/emacsserver.c	Mon Aug 30 15:07:30 1999 +0000
@@ -65,7 +65,13 @@
 #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