Mercurial > emacs
diff src/sysdep.c @ 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 | 2e359ef9797e |
| children | 4c9cf2c63703 |
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>
