]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: remove now-unnecessary #if HAVE_header_H tests.
authorJim Meyering <meyering@redhat.com>
Sat, 24 Apr 2010 15:38:13 +0000 (17:38 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 24 Apr 2010 15:44:58 +0000 (17:44 +0200)
* .x-sc_prohibit_always_true_header_tests: New file.
* Makefile.am (syntax_check_exceptions): Add it.
* src/cat.c: Remove #if HAVE_SYS_IOCTL_H test.
* src/copy.c: Likewise.
* src/ls.c: Likewise.
* src/stty.c: Likewise.
* src/install.c: Remove #if HAVE_SYS_WAIT_H test.
* src/kill.c: Likewise.
* src/operand2sig.c: Likewise.
* src/timeout.c: Likewise.
* src/pathchk.c: Remove #if HAVE_WCHAR_H test.
* src/stat.c: Remove #if HAVE_NETINET_IN_H test.

12 files changed:
.x-sc_prohibit_always_true_header_tests [new file with mode: 0644]
Makefile.am
src/cat.c
src/copy.c
src/install.c
src/kill.c
src/ls.c
src/operand2sig.c
src/pathchk.c
src/stat.c
src/stty.c
src/timeout.c

diff --git a/.x-sc_prohibit_always_true_header_tests b/.x-sc_prohibit_always_true_header_tests
new file mode 100644 (file)
index 0000000..732d9ec
--- /dev/null
@@ -0,0 +1,2 @@
+^m4/stat-prog\.m4$
+ChangeLog
index 9a7f45c66126eaef7c2a5802d17600554f6e1d5c..83c28b336a634d06c2ea90a425764ba5a0ef6d6c 100644 (file)
@@ -59,6 +59,7 @@ syntax_check_exceptions =             \
   .x-sc_sun_os_names                   \
   .x-sc_system_h_headers               \
   .x-sc_trailing_blank                 \
+  .x-sc_prohibit_always_true_header_tests \
   .x-sc_unmarked_diagnostics           \
   .x-sc_useless_cpp_parens
 
index c33e0b3798a0d3f51d36c38eb14f725591425e36..8740e0e4ffe7a9af383cc0dfdf2b90f5b031b834 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -30,9 +30,7 @@
 #if HAVE_STROPTS_H
 # include <stropts.h>
 #endif
-#if HAVE_SYS_IOCTL_H
-# include <sys/ioctl.h>
-#endif
+#include <sys/ioctl.h>
 
 #include "system.h"
 #include "error.h"
index d18fd45abf5637c2c43c1f4ad8aa26f2098572a0..c16cef62bad1369b14fe742b190c7bc3eebcbc35 100644 (file)
@@ -61,9 +61,7 @@
 # include "verror.h"
 #endif
 
-#if HAVE_SYS_IOCTL_H
-# include <sys/ioctl.h>
-#endif
+#include <sys/ioctl.h>
 
 #ifndef HAVE_FCHOWN
 # define HAVE_FCHOWN false
index bac5c7c390a4ccc27b8c0c8d822809061793b06a..038e86976ec58d7044ef2e974451773fa004e82a 100644 (file)
@@ -48,9 +48,7 @@
 
 #define AUTHORS proper_name ("David MacKenzie")
 
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 
 static int selinux_enabled = 0;
 static bool use_default_selinux_context = true;
index dab4fa834e6fb6c73484a1e5fb005437aa444c94..09d280822be68efda3841ac449a992b72d8c48de 100644 (file)
@@ -22,9 +22,7 @@
 #include <sys/types.h>
 #include <signal.h>
 
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 #ifndef WIFSIGNALED
 # define WIFSIGNALED(s) (((s) & 0xFFFF) - 1 < (unsigned int) 0xFF)
 #endif
index 6bd680e15bd75d753750632b3d0e855a85f87779..ca09ead8d0fede294b3ebf1fc00deec51666f9ae 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -45,9 +45,7 @@
 #if HAVE_STROPTS_H
 # include <stropts.h>
 #endif
-#if HAVE_SYS_IOCTL_H
-# include <sys/ioctl.h>
-#endif
+#include <sys/ioctl.h>
 
 #ifdef WINSIZE_IN_PTEM
 # include <sys/stream.h>
index 5b26a75fb142490d331e05c6fccf778198e1bb4a..d0500cdac2effa6023b0774663b690cba490e20b 100644 (file)
@@ -25,9 +25,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 #ifndef WIFSIGNALED
 # define WIFSIGNALED(s) (((s) & 0xFFFF) - 1 < (unsigned int) 0xFF)
 #endif
index d9f6c0a64dca87427e9512a4340fc344166b8492..62c20941c1b6cb0bbf459d6218bb9780b669e6ab 100644 (file)
@@ -18,9 +18,7 @@
 #include <stdio.h>
 #include <getopt.h>
 #include <sys/types.h>
-#if HAVE_WCHAR_H
-# include <wchar.h>
-#endif
+#include <wchar.h>
 
 #include "system.h"
 #include "error.h"
index 5063e708653d7675d3991125f9f7bce6eb4f95b3..e6de541e2daeb347d152e5374515d7544e2b7033 100644 (file)
@@ -44,7 +44,7 @@
 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
 # include <sys/param.h>
 # include <sys/mount.h>
-# if HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
+# if HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
 /* Ultrix 4.4 needs these for the declaration of struct statfs.  */
 #  include <netinet/in.h>
 #  include <nfs/nfs_clnt.h>
index 8c6920fe1aac39cf5ffeb6470de22be2f3f2c6ef..71045c2813ed16cf8445858a89183070b7ca6709 100644 (file)
@@ -42,9 +42,7 @@
 #if HAVE_STROPTS_H
 # include <stropts.h>
 #endif
-#ifdef HAVE_SYS_IOCTL_H
-# include <sys/ioctl.h>
-#endif
+#include <sys/ioctl.h>
 
 #ifdef WINSIZE_IN_PTEM
 # include <sys/stream.h>
index d1ea06d83f85714952465d8e4fa2fd323ad5b83f..c6f65258bf0d93871454d2bc801f2b7a0546457f 100644 (file)
 #include <stdio.h>
 #include <sys/types.h>
 #include <signal.h>
+#include <sys/wait.h>
 
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
 #ifndef WIFSIGNALED
 # define WIFSIGNALED(s) (((s) & 0xFFFF) - 1 < (unsigned int) 0xFF)
 #endif