summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorKarel Zak2018-05-29 10:06:00 +0200
committerKarel Zak2018-05-29 10:06:00 +0200
commitc0bdff9997d032e6be2bd89e89d3e06fa02a5c3f (patch)
treeabd9f079b2e9d4db8a514dff44a4acc54e76b819 /libmount/src/libmount.h.in
parentpo: fix lsblk translation (diff)
downloadkernel-qcow2-util-linux-c0bdff9997d032e6be2bd89e89d3e06fa02a5c3f.tar.gz
kernel-qcow2-util-linux-c0bdff9997d032e6be2bd89e89d3e06fa02a5c3f.tar.xz
kernel-qcow2-util-linux-c0bdff9997d032e6be2bd89e89d3e06fa02a5c3f.zip
libmount: include sys/mount.h on Linux only
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=891812 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index 11fd759fa..c61514b59 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -33,7 +33,7 @@ extern "C" {
* may be already defined by linux/fs.h or another file -- in this case we
* don't want to include sys/mount.h at all to avoid collisions.
*/
-#ifndef MS_RDONLY
+#if defined(__linux__) && !defined(MS_RDONLY)
# include <sys/mount.h>
#endif