summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-01-13 09:36:38 +0000
committerPádraig Brady <P@draigBrady.com>2011-01-13 17:28:36 +0000
commite1aaf8903db97f3240b1551fd6936ccdc652dfc8 (patch)
tree1c63e41e5ba1f7a0d77607933769dd47df86443e /src/copy.c
parentd95e3c8cebb98ea26a99a64c6bb1ad1024c38662 (diff)
downloadcoreutils-e1aaf8903db97f3240b1551fd6936ccdc652dfc8.tar.xz
maint: trivial system header file cleanups
* src/system.h: Note where it should be included, and make ordering check portable to GLIBC > 2 * src/copy.c: Move <sys/ioctl.h> along with other system headers as is done elsewhere. * src/install.c: Move <sys/wait.h> along with other system headers as is done elsewhere. * src/ptx.c: Include <regex.h> rather than "regex.h" as is done elsewhere. Note <regex.h> is kept after "system.h" as per commit dba300a0.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/copy.c b/src/copy.c
index a160952bb..9a014ad5a 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -19,6 +19,7 @@
#include <config.h>
#include <stdio.h>
#include <assert.h>
+#include <sys/ioctl.h>
#include <sys/types.h>
#include <selinux/selinux.h>
@@ -61,8 +62,6 @@
# include "verror.h"
#endif
-#include <sys/ioctl.h>
-
#ifndef HAVE_FCHOWN
# define HAVE_FCHOWN false
# define fchown(fd, uid, gid) (-1)