diff options
| author | Andreas Schwab | 1999-08-30 16:19:57 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-08-30 16:19:57 +0000 |
| commit | 9ee9af7aa2044c456e493eddfe082bba4206f976 (patch) | |
| tree | 1f1d8c33c567f22411af06a31f10d68ebf68ac27 /src | |
| parent | 92939d319a808c2f2162e079eadbdab2db813fcf (diff) | |
| download | emacs-9ee9af7aa2044c456e493eddfe082bba4206f976.tar.gz emacs-9ee9af7aa2044c456e493eddfe082bba4206f976.zip | |
Include <stdlib.h> if available. Declare errno only if it is not a macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index af84c34a0b9..8c0e49231a4 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -21,11 +21,11 @@ Boston, MA 02111-1307, USA. */ | |||
| 21 | 21 | ||
| 22 | #include <signal.h> | 22 | #include <signal.h> |
| 23 | #include <setjmp.h> | 23 | #include <setjmp.h> |
| 24 | #ifdef HAVE_STDLIB_H | ||
| 25 | #include <stdlib.h> | ||
| 26 | #endif | ||
| 27 | 24 | ||
| 28 | #include <config.h> | 25 | #include <config.h> |
| 26 | #ifdef STDC_HEADERS | ||
| 27 | #include <stdlib.h> | ||
| 28 | #endif | ||
| 29 | #include "lisp.h" | 29 | #include "lisp.h" |
| 30 | #include "blockinput.h" | 30 | #include "blockinput.h" |
| 31 | #undef NULL | 31 | #undef NULL |
| @@ -101,7 +101,9 @@ extern unsigned start __asm__ ("start"); | |||
| 101 | #endif | 101 | #endif |
| 102 | #endif | 102 | #endif |
| 103 | 103 | ||
| 104 | #ifndef errno | ||
| 104 | extern int errno; | 105 | extern int errno; |
| 106 | #endif | ||
| 105 | 107 | ||
| 106 | #ifdef VMS | 108 | #ifdef VMS |
| 107 | #include <rms.h> | 109 | #include <rms.h> |