diff options
author | Karel Zak | 2018-03-20 10:54:22 +0100 |
---|---|---|
committer | Karel Zak | 2018-03-20 10:59:56 +0100 |
commit | b1813c59c09fa887223d43e810b7dac9718a7522 (patch) | |
tree | 335fb29d1bd9541c1c1bdc412be75854f11ad25b | |
parent | lib/randutils: Do not block on getrandom() (diff) | |
download | kernel-qcow2-util-linux-b1813c59c09fa887223d43e810b7dac9718a7522.tar.gz kernel-qcow2-util-linux-b1813c59c09fa887223d43e810b7dac9718a7522.tar.xz kernel-qcow2-util-linux-b1813c59c09fa887223d43e810b7dac9718a7522.zip |
libmount: make libmount.h more robust
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>
-rw-r--r-- | libmount/src/libmount.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index 463b8ddcc..8f323fcbf 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -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@ |