From: Karel Zak Date: Thu, 22 Mar 2018 12:17:10 +0000 (+0100) Subject: fstrim: cleanup includes X-Git-Tag: v2.32.1~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a85f961ee3b777e3a14bf80341b63d8403def3e8;p=thirdparty%2Futil-linux.git fstrim: cleanup includes * HAVE_SYS_FS_H is incorrect (should be HAVE_LINUX_FS_H) * linux/fs.h cannot be included together with sys/mount.h as the both files define MS_* constants. The libmount.h includes sys/mount.h now. Signed-off-by: Karel Zak --- diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c index ca8cf256de..53ac594c05 100644 --- a/sys-utils/fstrim.c +++ b/sys-utils/fstrim.c @@ -36,10 +36,6 @@ #include #include -#ifdef HAVE_SYS_FS_H -# include -#endif - #include "nls.h" #include "strutils.h" #include "c.h" @@ -49,6 +45,10 @@ #include + +/* 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;