changeset 110:b3ff3ce48150

GNU shell utilities
author Jim Meyering <jim@meyering.net>
date Tue, 12 Oct 1993 01:50:02 +0000
parents 4da3615c731e
children 09e15f152c13
files lib/error.c lib/xmalloc.c
diffstat 2 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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>
 
--- 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