]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add mount-api-utils.h to linux only ifdef
authorKarel Zak <kzak@redhat.com>
Mon, 8 Jul 2024 10:41:34 +0000 (12:41 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jul 2024 10:41:48 +0000 (12:41 +0200)
This is a cosmetic change. Let's use the already defined Linux-only
ifdef for mount-api-utils.h too.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/helpers/test_sysinfo.c

index 362466a6ac780e3edf15cd8b30581c3727b477a0..6447e84134543ab60bda210c8d79352f62f35024 100644 (file)
 #include <errno.h>
 #include <time.h>
 #include <sys/ioctl.h>
+
 #ifdef __linux__
 # include <sys/mount.h>
+# include "mount-api-utils.h"
 #endif
 
-#include "mount-api-utils.h"
-
 #ifdef HAVE_LINUX_NSFS_H
 # include <linux/nsfs.h>
 # if defined(NS_GET_NSTYPE) && defined(NS_GET_OWNER_UID)