From 30d5e647aa317989d2470ce7eda0d85371241959 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 21 Oct 1993 21:58:56 +0000 Subject: [PATCH] GNU text utilities --- lib/linebuffer.c | 11 +++++++++++ lib/memchr.c | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/lib/linebuffer.c b/lib/linebuffer.c index 7f53aed70..2c12bbb68 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 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 #include "linebuffer.h" diff --git a/lib/memchr.c b/lib/memchr.c index 749510636..bb8b81381 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 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 + /* Search no more than N bytes of S for C. */ char * -- 2.11.0