diff options
| author | Dave Love | 2000-06-19 16:19:05 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-19 16:19:05 +0000 |
| commit | 20fd0b4fab6f7a7f3f669b75eee8a8fa2c75d8bc (patch) | |
| tree | 1cc77627c9814e9d643c791b8eeb46ae3e05ce08 /src | |
| parent | 3a8e2ba917c2afafeea9ada5e3e8b12d3fe01a49 (diff) | |
| download | emacs-20fd0b4fab6f7a7f3f669b75eee8a8fa2c75d8bc.tar.gz emacs-20fd0b4fab6f7a7f3f669b75eee8a8fa2c75d8bc.zip | |
Include errno.h, string.h, unistd.h. Don't declare errno, strerror.
Put text after #endif in comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexalpha.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/unexalpha.c b/src/unexalpha.c index 987828664eb..de6c46a8358 100644 --- a/src/unexalpha.c +++ b/src/unexalpha.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Unexec for DEC alpha. schoepf@sc.ZIB-Berlin.DE (Rainer Schoepf). | 1 | /* Unexec for DEC alpha. schoepf@sc.ZIB-Berlin.DE (Rainer Schoepf). |
| 2 | 2 | ||
| 3 | Copyright (C) 1994 Free Software Foundation, Inc. | 3 | Copyright (C) 1994, 2000 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -27,6 +27,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 27 | #include <sys/mman.h> | 27 | #include <sys/mman.h> |
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <varargs.h> | 29 | #include <varargs.h> |
| 30 | #include <errno.h> | ||
| 31 | #ifdef HAVE_STRING_H | ||
| 32 | #include <string.h> | ||
| 33 | #endif | ||
| 30 | #if !defined (__NetBSD__) && !defined (__OpenBSD__) | 34 | #if !defined (__NetBSD__) && !defined (__OpenBSD__) |
| 31 | #include <filehdr.h> | 35 | #include <filehdr.h> |
| 32 | #include <aouthdr.h> | 36 | #include <aouthdr.h> |
| @@ -94,10 +98,11 @@ static void mark_x (); | |||
| 94 | if (lseek (_fd, _position, L_SET) != _position) \ | 98 | if (lseek (_fd, _position, L_SET) != _position) \ |
| 95 | fatal_unexec (_error_message, _error_arg); | 99 | fatal_unexec (_error_message, _error_arg); |
| 96 | 100 | ||
| 97 | extern int errno; | 101 | #ifdef HAVE_UNISTD_H |
| 98 | extern char *strerror (); | 102 | #include <unistd.h> |
| 99 | 103 | #else | |
| 100 | void *sbrk (); | 104 | void *sbrk (); |
| 105 | #endif | ||
| 101 | 106 | ||
| 102 | #define EEOF -1 | 107 | #define EEOF -1 |
| 103 | 108 | ||
| @@ -235,10 +240,10 @@ unexec (new_name, a_name, data_start, bss_start, entry_address) | |||
| 235 | #endif | 240 | #endif |
| 236 | #ifdef _PDATA | 241 | #ifdef _PDATA |
| 237 | CHECK_SCNHDR (pdata_section, _PDATA, STYP_PDATA); | 242 | CHECK_SCNHDR (pdata_section, _PDATA, STYP_PDATA); |
| 238 | #endif _PDATA | 243 | #endif /* _PDATA */ |
| 239 | #ifdef _GOT | 244 | #ifdef _GOT |
| 240 | CHECK_SCNHDR (got_section, _GOT, STYP_GOT); | 245 | CHECK_SCNHDR (got_section, _GOT, STYP_GOT); |
| 241 | #endif _GOT | 246 | #endif /* _GOT */ |
| 242 | CHECK_SCNHDR (data_section, _DATA, STYP_DATA); | 247 | CHECK_SCNHDR (data_section, _DATA, STYP_DATA); |
| 243 | #ifdef _XDATA | 248 | #ifdef _XDATA |
| 244 | CHECK_SCNHDR (xdata_section, _XDATA, STYP_XDATA); | 249 | CHECK_SCNHDR (xdata_section, _XDATA, STYP_XDATA); |