changeset 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 76e2d539ecad
children 7ebe942c4a9c
files lib-src/emacsserver.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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