projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b467452
)
GNU text utilities
author
Jim Meyering
<jim@meyering.net>
Sat, 16 Oct 1993 14:33:54 +0000
(14:33 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 16 Oct 1993 14:33:54 +0000
(14:33 +0000)
lib/regex.c
patch
|
blob
|
history
lib/strtol.c
patch
|
blob
|
history
diff --git
a/lib/regex.c
b/lib/regex.c
index
15ca91b
..
8b7aecf
100644
(file)
--- a/
lib/regex.c
+++ b/
lib/regex.c
@@
-26,6
+26,17
@@
#define _GNU_SOURCE
#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>
/* 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
a88ec5e
..
5e8a310
100644
(file)
--- 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. */
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>
#include <ctype.h>
#include <errno.h>