summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-16 14:33:54 +0000
committerJim Meyering <jim@meyering.net>1993-10-16 14:33:54 +0000
commit58514a265eac0bffd00bf387d47d449fcc09c3f4 (patch)
tree32d8df70fb1f45dfe2856f9f432d6235c54baa2d
parentb46745241a7da3a1ae16103c1aaa69971e14636e (diff)
downloadgnulib-58514a265eac0bffd00bf387d47d449fcc09c3f4.tar.gz
GNU text utilities
-rw-r--r--lib/regex.c11
-rw-r--r--lib/strtol.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 15ca91bc54..8b7aecf0d8 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -26,6 +26,17 @@
#define _GNU_SOURCE
+#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
+
/* We need this for `regex.h', and perhaps for the Emacs include files. */
#include <sys/types.h>
diff --git a/lib/strtol.c b/lib/strtol.c
index a88ec5eeaa..5e8a310c6f 100644
--- a/lib/strtol.c
+++ b/lib/strtol.c
@@ -16,6 +16,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
+
#include <ctype.h>
#include <errno.h>