changeset 25453:61fb4dde8684

Include <stdlib.h> if available. Declare errno only if it is not a macro.
author Andreas Schwab <schwab@suse.de>
date Mon, 30 Aug 1999 16:19:57 +0000
parents 4d553f7390dc
children 80ac191b6d2b
files src/sysdep.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Mon Aug 30 16:18:30 1999 +0000
+++ b/src/sysdep.c	Mon Aug 30 16:19:57 1999 +0000
@@ -21,11 +21,11 @@
 
 #include <signal.h>
 #include <setjmp.h>
-#ifdef HAVE_STDLIB_H
+
+#include <config.h>
+#ifdef STDC_HEADERS
 #include <stdlib.h>
 #endif
-
-#include <config.h>
 #include "lisp.h"
 #include "blockinput.h"
 #undef NULL
@@ -101,7 +101,9 @@
 #endif
 #endif
 
+#ifndef errno
 extern int errno;
+#endif
 
 #ifdef VMS
 #include <rms.h>