From 86bae29d787ba3baea9ef71a03f0ef266bdb8e34 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Mon, 28 Oct 2019 15:01:02 -0600 Subject: [PATCH] Protect inclusions of autotools_config.h with HAVE_CONFIG_H --- cde/lib/DtHelp/Helpos.c | 6 ++++-- cde/lib/DtHelp/il/ilint.h | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cde/lib/DtHelp/Helpos.c b/cde/lib/DtHelp/Helpos.c index 3787c33d..e4daa560 100644 --- a/cde/lib/DtHelp/Helpos.c +++ b/cde/lib/DtHelp/Helpos.c @@ -47,9 +47,11 @@ #include #include -#include +#if defined(HAVE_CONFIG_H) +# include +#endif #if defined(HAVE_LOCALE_H) -#include +# include #endif #define X_INCLUDE_PWD_H diff --git a/cde/lib/DtHelp/il/ilint.h b/cde/lib/DtHelp/il/ilint.h index f7fdf1de..376de0fd 100644 --- a/cde/lib/DtHelp/il/ilint.h +++ b/cde/lib/DtHelp/il/ilint.h @@ -44,7 +44,10 @@ */ /* use autotools detection to determine endianess */ -#include +#if defined(HAVE_CONFIG_H) +# include +#endif + #ifndef WORDS_BIGENDIAN # define LSB_BIT_ORDER #endif -- 2.25.1