From 10074829b405d5ada97315d30d400e6dd42d48ae Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 12 Oct 1993 14:49:15 +0000 Subject: [PATCH] merge with 1.8.1d --- lib/getusershell.c | 11 +++++++++++ lib/putenv.c | 11 +++++++++++ lib/strftime.c | 11 +++++++++++ 3 files changed, 33 insertions(+) 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 */ +#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 + #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 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 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 */ +#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 #if defined(TM_IN_SYS_TIME) || (!defined(HAVE_TM_ZONE) && !defined(HAVE_TZNAME)) #include -- 2.30.2