]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/mount-api-utils: avoid using sys/mount.h
authorKarel Zak <kzak@redhat.com>
Thu, 21 Aug 2025 07:59:10 +0000 (09:59 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Sep 2025 10:09:37 +0000 (12:09 +0200)
The file is unnecessary and introduces duplicate #define of MS_* macros.

Fixes: https://github.com/util-linux/util-linux/issues/3674
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 2a9b48d20d74f65ac708b3bcee6a7e2a61aadf88)

include/mount-api-utils.h

index 02bb326c6c21f78f7e3155a90da60b9fae9892de..a916f99f9e0425b1864976a3f973e2bf65b30545 100644 (file)
@@ -6,7 +6,6 @@
 #define UTIL_LINUX_MOUNT_API_UTILS
 
 #ifdef HAVE_LINUX_MOUNT_H
-#include <sys/mount.h>
 #include <linux/mount.h>
 #include <linux/unistd.h>
 #include <sys/syscall.h>