From b46745241a7da3a1ae16103c1aaa69971e14636e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 12 Oct 1993 01:50:02 +0000 Subject: [PATCH] GNU shell utilities --- lib/error.c | 9 ++++++++- lib/xmalloc.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/error.c b/lib/error.c index a54e2418f..41d66fb4f 100644 --- a/lib/error.c +++ b/lib/error.c @@ -17,9 +17,16 @@ /* Written by David MacKenzie. */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h + (which it would do because it found this file in $srcdir). */ +#include +#else #include "config.h" #endif +#endif #include diff --git a/lib/xmalloc.c b/lib/xmalloc.c index bce432513..58a81b5ab 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -15,9 +15,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h + (which it would do because it found this file in $srcdir). */ +#include +#else #include "config.h" #endif +#endif #if __STDC__ #define VOID void -- 2.11.0