summaryrefslogtreecommitdiff
path: root/src
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 /src
parent19cd821ddb4b6c195239870de617a99781e081ce (diff)
downloadcoreutils-f2080b7714a4dc451a40c9ba12d4c6125a1e69f5.tar.xz
merge with 3.8.3b
Diffstat (limited to 'src')
-rw-r--r--src/chgrp.c11
-rw-r--r--src/chmod.c11
-rw-r--r--src/chown.c11
-rw-r--r--src/cp.c12
-rw-r--r--src/dd.c11
-rw-r--r--src/df.c11
-rw-r--r--src/du.c12
-rw-r--r--src/install.c11
-rw-r--r--src/ln.c12
-rw-r--r--src/ls.c12
-rw-r--r--src/mkdir.c11
-rw-r--r--src/mkfifo.c11
-rw-r--r--src/mknod.c11
-rw-r--r--src/mv.c12
-rw-r--r--src/rm.c11
-rw-r--r--src/rmdir.c11
-rw-r--r--src/touch.c11
17 files changed, 192 insertions, 0 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 6a6737a03..ca66a595c 100644
--- a/src/chgrp.c
+++ b/src/chgrp.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
+
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
diff --git a/src/chmod.c b/src/chmod.c
index eb3316c0e..511e3e22a 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -23,6 +23,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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/chown.c b/src/chown.c
index 6c9678137..c295f5816 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -28,6 +28,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
+
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
diff --git a/src/cp.c b/src/cp.c
index f0a5ce529..c1ae72c84 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -20,6 +20,18 @@
#ifdef _AIX
#pragma alloca
#endif
+
+#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 <stdio.h>
#include <getopt.h>
#include "cp.h"
diff --git a/src/dd.c b/src/dd.c
index fd1091488..9ff4cf993 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -53,6 +53,17 @@
sync Pad every input block to size of ibs with
trailing NULs. */
+#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 <stdio.h>
#include <ctype.h>
diff --git a/src/df.c b/src/df.c
index 35b1896aa..7b779258f 100644
--- a/src/df.c
+++ b/src/df.c
@@ -32,6 +32,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
+
#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
diff --git a/src/du.c b/src/du.c
index 4ea63f336..5f538ec7f 100644
--- a/src/du.c
+++ b/src/du.c
@@ -39,6 +39,18 @@
#ifdef _AIX
#pragma alloca
#endif
+
+#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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/install.c b/src/install.c
index 31a15dd1b..075620085 100644
--- a/src/install.c
+++ b/src/install.c
@@ -52,6 +52,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 <stdio.h>
#include <getopt.h>
#include <ctype.h>
diff --git a/src/ln.c b/src/ln.c
index f8cf11e52..8e96eb848 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -20,6 +20,18 @@
#ifdef _AIX
#pragma alloca
#endif
+
+#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 <stdio.h>
#include <sys/types.h>
#include <getopt.h>
diff --git a/src/ls.c b/src/ls.c
index 947e1b5b8..9db617448 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -35,6 +35,18 @@
#ifdef _AIX
#pragma alloca
#endif
+
+#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(_POSIX_SOURCE) || defined(_AIX)
#include <sys/ioctl.h>
diff --git a/src/mkdir.c b/src/mkdir.c
index f5d89b7f3..1167c1a2e 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -27,6 +27,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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/mkfifo.c b/src/mkfifo.c
index 4b16d1254..c15f740e6 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -22,6 +22,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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/mknod.c b/src/mknod.c
index 74efa86b2..702435186 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -27,6 +27,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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/mv.c b/src/mv.c
index 5029c7a76..a5d22eb8e 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -40,6 +40,18 @@
#ifdef _AIX
#pragma alloca
#endif
+
+#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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/rm.c b/src/rm.c
index 2bd8db4ce..b20950f78 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -17,6 +17,17 @@
/* Written by Paul Rubin, David MacKenzie, and Richard Stallman. */
+#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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/rmdir.c b/src/rmdir.c
index 7c497b4b9..ac4c88c50 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -22,6 +22,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 <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/touch.c b/src/touch.c
index 152a27e84..dc1d06f95 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -32,6 +32,17 @@
Written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie,
and Randy Smith. */
+#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 <stdio.h>
#include <ctype.h>
#include <getopt.h>