summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gethostname.c11
-rw-r--r--lib/getugroups.c11
-rw-r--r--lib/getusershell.c11
-rw-r--r--lib/putenv.c11
-rw-r--r--lib/stime.c11
-rw-r--r--lib/strcspn.c11
-rw-r--r--lib/strftime.c11
-rw-r--r--lib/strtod.c11
8 files changed, 88 insertions, 0 deletions
diff --git a/lib/gethostname.c b/lib/gethostname.c
index fe78dbb4a4..a7a271b33b 100644
--- a/lib/gethostname.c
+++ b/lib/gethostname.c
@@ -17,6 +17,17 @@
/* David MacKenzie <djm@gnu.ai.mit.edu> */
+#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
+
#ifdef HAVE_UNAME
#include <sys/utsname.h>
#endif
diff --git a/lib/getugroups.c b/lib/getugroups.c
index dab04a0cf4..f7d3d00351 100644
--- a/lib/getugroups.c
+++ b/lib/getugroups.c
@@ -17,6 +17,17 @@
/* Written by David MacKenzie. */
+#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 <sys/types.h>
#include <grp.h>
diff --git a/lib/getusershell.c b/lib/getusershell.c
index 1dee6e7ab8..2607535f23 100644
--- a/lib/getusershell.c
+++ b/lib/getusershell.c
@@ -17,6 +17,17 @@
/* Written by David MacKenzie <djm@gnu.ai.mit.edu> */
+#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
+
#ifndef SHELLS_FILE
/* File containing a list of nonrestricted shells, one per line. */
#define SHELLS_FILE "/etc/shells"
diff --git a/lib/putenv.c b/lib/putenv.c
index c39d1b71e1..573e62478b 100644
--- a/lib/putenv.c
+++ b/lib/putenv.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 <sys/types.h>
#include <errno.h>
diff --git a/lib/stime.c b/lib/stime.c
index e647953872..185c753d9b 100644
--- a/lib/stime.c
+++ b/lib/stime.c
@@ -17,6 +17,17 @@
/* David MacKenzie <djm@ai.mit.edu> */
+#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 <sys/types.h>
#include <sys/time.h>
diff --git a/lib/strcspn.c b/lib/strcspn.c
index ea61aa1204..ea1bbbc34f 100644
--- a/lib/strcspn.c
+++ b/lib/strcspn.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
+
char *index ();
/* Return the length of the maximum inital segment of S
diff --git a/lib/strftime.c b/lib/strftime.c
index cfd41adbee..569a3d448e 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -73,6 +73,17 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
+#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 <sys/types.h>
#if defined(TM_IN_SYS_TIME) || (!defined(HAVE_TM_ZONE) && !defined(HAVE_TZNAME))
#include <sys/time.h>
diff --git a/lib/strtod.c b/lib/strtod.c
index 1b8e5b5442..d289753686 100644
--- a/lib/strtod.c
+++ b/lib/strtod.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 <errno.h>
#include <ctype.h>
#include <math.h>