aboutsummaryrefslogtreecommitdiffstats
path: root/src/copy.c
diff options
context:
space:
mode:
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)