# HG changeset patch # User Andreas Schwab # Date 936029997 0 # Node ID 61fb4dde8684444229457a94bb72b7d4765c81de # Parent 4d553f7390dcd3739763763107f37cd06f04a9a8 Include if available. Declare errno only if it is not a macro. diff -r 4d553f7390dc -r 61fb4dde8684 src/sysdep.c --- 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 #include -#ifdef HAVE_STDLIB_H + +#include +#ifdef STDC_HEADERS #include #endif - -#include #include "lisp.h" #include "blockinput.h" #undef NULL @@ -101,7 +101,9 @@ #endif #endif +#ifndef errno extern int errno; +#endif #ifdef VMS #include