--- a/src/utils/copyfile.cpp
+++ b/src/utils/copyfile.cpp
@@ -22,9 +22,12 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <utime.h>
+
 #include <cstring>
-#include <sys/stat.h>
-#include <sys/times.h>
 
 #include "copyfile.h"
 #include "debuglog.h"