]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: make libmount.h more robust
authorKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2018 09:54:22 +0000 (10:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2018 09:59:56 +0000 (10:59 +0100)
Let's include sys/mount.h to be sure that our local libmount fallbacks
are not used by default to avoid possible conflicts with later included
sys/mount.h.

Addresses: https://github.com/systemd/systemd/pull/8452
Reported-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/libmount.h.in

index 463b8ddcc73596fb8d031e4010336bb4f9e70b57..8f323fcbf95e22d091dcdd783386f3779a2687ae 100644 (file)
@@ -28,6 +28,7 @@ extern "C" {
 #include <stdio.h>
 #include <mntent.h>
 #include <sys/types.h>
+#include <sys/mount.h>
 
 #define LIBMOUNT_VERSION   "@LIBMOUNT_VERSION@"
 #define LIBMOUNT_MAJOR_VERSION   @LIBMOUNT_MAJOR_VERSION@