SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
SPDX-FileCopyrightText: 2021 Samuel Tyler <samuel@samuelt.me>

SPDX-License-Identifier: GPL-2.0-or-later

modechange.h uses functions defined in sys/stat.h, so we need to move it to
after sys/stat.h include.

--- coreutils-5.0/lib/modechange.c	2001-12-09 22:54:19.000000000 +0000
+++ coreutils-5.0/lib/modechange.c	2021-01-17 18:34:22.016427148 +0000
@@ -28,8 +28,8 @@
 # include <config.h>
 #endif
 
-#include "modechange.h"
 #include <sys/stat.h>
+#include "modechange.h"
 #include "xstrtol.h"
 
 #if STDC_HEADERS
