From 077907d49f0823e9b1cd79ed68aa02ce3f9a3862 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 16 Nov 2001 14:24:55 +0000 Subject: [PATCH] Don't include coff.h unless HAVE_COFF_H is defined. --- src/ChangeLog | 5 +++++ src/unexec.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index bf63cd1ccd8..b0ac320cffe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-11-16 Eli Zaretskii + + * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined. + Required for ISC 4.1. + 2001-11-16 Eli Zaretskii * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by diff --git a/src/unexec.c b/src/unexec.c index fb00c27e54b..7c51f705c6f 100644 --- a/src/unexec.c +++ b/src/unexec.c @@ -171,7 +171,7 @@ pointer looks like an int) but not on all machines. #ifndef CANNOT_DUMP /* all rest of file! */ -#ifdef COFF +#if defined(COFF) && defined(HAVE_COFF_H) #include #ifdef MSDOS #if __DJGPP__ > 1 -- 2.39.5