# HG changeset patch # User Dave Love # Date 961431545 0 # Node ID ea3c28a8be0058ca75f92c16c6618edd2af228b9 # Parent a313aa06c3bda7e11e905bc3f7488a2e6a18fad3 Include errno.h, string.h, unistd.h. Don't declare errno, strerror. Put text after #endif in comment. diff -r a313aa06c3bd -r ea3c28a8be00 src/unexalpha.c --- a/src/unexalpha.c Mon Jun 19 16:16:01 2000 +0000 +++ b/src/unexalpha.c Mon Jun 19 16:19:05 2000 +0000 @@ -1,6 +1,6 @@ /* Unexec for DEC alpha. schoepf@sc.ZIB-Berlin.DE (Rainer Schoepf). - Copyright (C) 1994 Free Software Foundation, Inc. + Copyright (C) 1994, 2000 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -27,6 +27,10 @@ #include #include #include +#include +#ifdef HAVE_STRING_H +#include +#endif #if !defined (__NetBSD__) && !defined (__OpenBSD__) #include #include @@ -94,10 +98,11 @@ if (lseek (_fd, _position, L_SET) != _position) \ fatal_unexec (_error_message, _error_arg); -extern int errno; -extern char *strerror (); - +#ifdef HAVE_UNISTD_H +#include +#else void *sbrk (); +#endif #define EEOF -1 @@ -235,10 +240,10 @@ #endif #ifdef _PDATA CHECK_SCNHDR (pdata_section, _PDATA, STYP_PDATA); -#endif _PDATA +#endif /* _PDATA */ #ifdef _GOT CHECK_SCNHDR (got_section, _GOT, STYP_GOT); -#endif _GOT +#endif /* _GOT */ CHECK_SCNHDR (data_section, _DATA, STYP_DATA); #ifdef _XDATA CHECK_SCNHDR (xdata_section, _XDATA, STYP_XDATA);