diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-12 01:50:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-12 01:50:02 +0000 |
commit | b46745241a7da3a1ae16103c1aaa69971e14636e (patch) | |
tree | a178e93a9b801a66dec8984b6d1d3f8124525161 | |
parent | 4b2db36e1453ce2aac552eb4fbf49e284565ca2f (diff) | |
download | gnulib-b46745241a7da3a1ae16103c1aaa69971e14636e.tar.gz |
GNU shell utilitiesSHELLUTILS-1_8_1b
-rw-r--r-- | lib/error.c | 9 | ||||
-rw-r--r-- | lib/xmalloc.c | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/lib/error.c b/lib/error.c index a54e2418fb..41d66fb4f4 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 <config.h> 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 <config.h> +#else #include "config.h" #endif +#endif #include <stdio.h> diff --git a/lib/xmalloc.c b/lib/xmalloc.c index bce4325135..58a81b5abb 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 <config.h> 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 <config.h> +#else #include "config.h" #endif +#endif #if __STDC__ #define VOID void |