From 92a0e357d2915935df140c766bf98db53a53a455 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 6 Oct 1993 16:44:42 +0000 Subject: [PATCH] merge with 3.8.3b --- lib/Makefile.in | 2 +- lib/backupfile.c | 11 +++++++++++ lib/dirname.c | 11 +++++++++++ lib/fsusage.c | 11 +++++++++++ lib/makepath.c | 22 ++++++++++++++++++++++ lib/userspec.c | 11 +++++++++++ 6 files changed, 67 insertions(+), 1 deletion(-) diff --git a/lib/Makefile.in b/lib/Makefile.in index ae30a2df5..af3bf1c8e 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -49,7 +49,7 @@ fnmatch.h fsusage.h mountlist.h pathmax.h system.h $(SOURCES) all: libfu.a .c.o: - $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $< + $(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $< install: all diff --git a/lib/backupfile.c b/lib/backupfile.c index 670db0f5d..ddf3fa789 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -18,6 +18,17 @@ /* David MacKenzie . Some algorithms adapted from GNU Emacs. */ +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I will use ./config.h rather than /config.h + (which it would do because it found this file in ). */ +#include +#else +#include "config.h" +#endif +#endif + #include #include #include diff --git a/lib/dirname.c b/lib/dirname.c index 5a92ce557..8e365ed92 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -15,6 +15,17 @@ along with this program; 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 will use ./config.h rather than /config.h + (which it would do because it found this file in ). */ +#include +#else +#include "config.h" +#endif +#endif + #ifdef STDC_HEADERS #include #else diff --git a/lib/fsusage.c b/lib/fsusage.c index 2f1179b23..28c54ac17 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -15,6 +15,17 @@ along with this program; 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 will use ./config.h rather than /config.h + (which it would do because it found this file in ). */ +#include +#else +#include "config.h" +#endif +#endif + #include #include "fsusage.h" diff --git a/lib/makepath.c b/lib/makepath.c index 7699c178d..be5f8c347 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -18,6 +18,17 @@ /* Written by David MacKenzie and Jim Meyering . */ +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I will use ./config.h rather than /config.h + (which it would do because it found this file in ). */ +#include +#else +#include "config.h" +#endif +#endif + #ifdef __GNUC__ #define alloca __builtin_alloca #else @@ -32,6 +43,17 @@ char *alloca (); #endif #endif +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I will use ./config.h rather than /config.h + (which it would do because it found this file in ). */ +#include +#else +#include "config.h" +#endif +#endif + #include #include #include diff --git a/lib/userspec.c b/lib/userspec.c index 44d7d9174..8c1e9ec8e 100644 --- a/lib/userspec.c +++ b/lib/userspec.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 will use ./config.h rather than /config.h + (which it would do because it found this file in ). */ +#include +#else +#include "config.h" +#endif +#endif + #include #include #include -- 2.11.0