summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-21 21:58:56 +0000
committerJim Meyering <jim@meyering.net>1993-10-21 21:58:56 +0000
commit30d5e647aa317989d2470ce7eda0d85371241959 (patch)
treee862d2f4e2a8e4358230269c7e2f095cb5d1a349
parente93ac7a384ea8c1e2e4cf4993653450b53b9c2f7 (diff)
downloadgnulib-30d5e647aa317989d2470ce7eda0d85371241959.tar.gz
GNU text utilitiesTEXTUTILS-1_8i
-rw-r--r--lib/linebuffer.c11
-rw-r--r--lib/memchr.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/linebuffer.c b/lib/linebuffer.c
index 7f53aed70b..2c12bbb68c 100644
--- a/lib/linebuffer.c
+++ b/lib/linebuffer.c
@@ -17,6 +17,17 @@
/* Written by Richard Stallman. */
+#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>
#include "linebuffer.h"
diff --git a/lib/memchr.c b/lib/memchr.c
index 7495106362..bb8b813817 100644
--- a/lib/memchr.c
+++ b/lib/memchr.c
@@ -20,6 +20,17 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
+#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
+
/* Search no more than N bytes of S for C. */
char *