diff options
author | Karel Zak | 2018-05-29 10:06:00 +0200 |
---|---|---|
committer | Karel Zak | 2018-05-29 10:06:00 +0200 |
commit | c0bdff9997d032e6be2bd89e89d3e06fa02a5c3f (patch) | |
tree | abd9f079b2e9d4db8a514dff44a4acc54e76b819 | |
parent | po: fix lsblk translation (diff) | |
download | kernel-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>
-rw-r--r-- | libmount/src/libmount.h.in | 2 |
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 |