summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.c
diff options
context:
space:
mode:
authorKarel Zak2018-03-22 14:05:17 +0100
committerKarel Zak2018-03-22 14:05:17 +0100
commit061d1a51097c3c025ff46173f10aa135f9a610d4 (patch)
tree16325c06b0a7a52cea6f794739912d873118aad6 /sys-utils/fstrim.c
parentfstrim: cleanup includes (diff)
downloadkernel-qcow2-util-linux-061d1a51097c3c025ff46173f10aa135f9a610d4.tar.gz
kernel-qcow2-util-linux-061d1a51097c3c025ff46173f10aa135f9a610d4.tar.xz
kernel-qcow2-util-linux-061d1a51097c3c025ff46173f10aa135f9a610d4.zip
libmount: include sys/mount.h only if necessary
Addresses: https://github.com/systemd/systemd/issues/8507 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fstrim.c')
-rw-r--r--sys-utils/fstrim.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c
index 53ac594c0..ce52063e1 100644
--- a/sys-utils/fstrim.c
+++ b/sys-utils/fstrim.c
@@ -35,6 +35,7 @@
#include <sys/ioctl.h>
#include <sys/stat.h>
+#include <linux/fs.h>
#include "nls.h"
#include "strutils.h"
@@ -46,9 +47,6 @@
#include <libmount.h>
-/* We cannot include linux/fs.h due to MS_* constants collision with
- * sys/mount.h (and libmount.h)
- */
#ifndef FITRIM
struct fstrim_range {
uint64_t start;