summaryrefslogtreecommitdiff
path: root/lib/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memchr.c')
-rw-r--r--lib/memchr.c11
1 files changed, 11 insertions, 0 deletions
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 <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 *