X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/2a4487aceb4f5c7175ed98e168d9a49a99ae0a80..a3b10252a6f892598638bec3c3ecb5537411c188:/src/unexec.c diff --git a/src/unexec.c b/src/unexec.c index 588ca15dac..fb00c27e54 100644 --- a/src/unexec.c +++ b/src/unexec.c @@ -173,18 +173,12 @@ pointer looks like an int) but not on all machines. #ifdef COFF #include -#else -#ifdef COFF_ENCAPSULATE -int need_coff_header = 1; -#include /* The location might be a poor assumption */ -#else #ifdef MSDOS #if __DJGPP__ > 1 #include /* for O_RDONLY, O_RDWR */ #include /* for _crt0_startup_flags and its bits */ static int save_djgpp_startup_flags; -#endif -#include +#endif /* __DJGPP__ > 1 */ #define filehdr external_filehdr #define scnhdr external_scnhdr #define syment external_syment @@ -202,12 +196,14 @@ struct aouthdr unsigned long text_start;/* base of text used for this file */ unsigned long data_start;/* base of data used for this file */ }; - - -#else /* not MSDOS */ -#include #endif /* not MSDOS */ -#endif +#else /* not COFF */ +#ifdef COFF_ENCAPSULATE +int need_coff_header = 1; +#include /* The location might be a poor assumption */ +#else /* not COFF_ENCAPSULATE */ +#include +#endif /* not COFF_ENCAPSULATE */ #endif /* not COFF */ /* Define getpagesize if the system does not. @@ -1071,7 +1067,9 @@ write_segment (new, ptr, end) { register int i, nwrite, ret; char buf[80]; +#ifndef USE_CRT_DLL extern int errno; +#endif /* This is the normal amount to write at once. It is the size of block that NFS uses. */ int writesize = 1 << 13;