summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-06 16:44:26 +0000
committerJim Meyering <jim@meyering.net>1993-10-06 16:44:26 +0000
commitf2080b7714a4dc451a40c9ba12d4c6125a1e69f5 (patch)
tree1fc76c1b7d92d4010cc1bd278b67a6e540cfabc2 /lib
parent19cd821ddb4b6c195239870de617a99781e081ce (diff)
downloadcoreutils-f2080b7714a4dc451a40c9ba12d4c6125a1e69f5.tar.xz
merge with 3.8.3b
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.in2
-rw-r--r--lib/backupfile.c11
-rw-r--r--lib/dirname.c11
-rw-r--r--lib/fsusage.c11
-rw-r--r--lib/makepath.c22
-rw-r--r--lib/userspec.c11
6 files changed, 67 insertions, 1 deletions
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 <djm@gnu.ai.mit.edu>.
Some algorithms adapted from GNU Emacs. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> 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 <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
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 <config.h> 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 <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#ifdef STDC_HEADERS
#include <stdlib.h>
#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 <config.h> 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 <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <sys/types.h>
#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 <djm@gnu.ai.mit.edu> and
Jim Meyering <meyering@cs.utexas.edu>. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> 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 <config.h>
+#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 <config.h> 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 <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
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 <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 will use ./config.h rather than /config.h
+ (which it would do because it found this file in ). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>