diff options
author | David P <megver83@parabola.nu> | 2018-05-06 17:42:53 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2018-05-06 17:42:53 -0300 |
commit | 1836dc713239aa47b14b8b642e3c0c6b3a08828e (patch) | |
tree | c71d3526fcb24c9972b78d26248f37b4d0b04c72 /pcr/util-linux-nosystemd/0001-fstrim-cleanup-uncludes.patch | |
parent | 779a449890e9ae5a02b336a710a27688e3d26417 (diff) | |
download | abslibre-1836dc713239aa47b14b8b642e3c0c6b3a08828e.tar.gz abslibre-1836dc713239aa47b14b8b642e3c0c6b3a08828e.tar.bz2 abslibre-1836dc713239aa47b14b8b642e3c0c6b3a08828e.zip |
upgpkg: pcr/util-linux-nosystemd 2.32-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/util-linux-nosystemd/0001-fstrim-cleanup-uncludes.patch')
-rw-r--r-- | pcr/util-linux-nosystemd/0001-fstrim-cleanup-uncludes.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/util-linux-nosystemd/0001-fstrim-cleanup-uncludes.patch b/pcr/util-linux-nosystemd/0001-fstrim-cleanup-uncludes.patch new file mode 100644 index 000000000..74078555f --- /dev/null +++ b/pcr/util-linux-nosystemd/0001-fstrim-cleanup-uncludes.patch @@ -0,0 +1,41 @@ +From 43abda66869e749044c6c4fd1d106d7df9484aca Mon Sep 17 00:00:00 2001 +From: Karel Zak <kzak@redhat.com> +Date: Thu, 22 Mar 2018 13:17:10 +0100 +Subject: 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 <kzak@redhat.com> +--- + sys-utils/fstrim.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c +index ca8cf256d..53ac594c0 100644 +--- a/sys-utils/fstrim.c ++++ b/sys-utils/fstrim.c +@@ -36,10 +36,6 @@ + #include <sys/ioctl.h> + #include <sys/stat.h> + +-#ifdef HAVE_SYS_FS_H +-# include <linux/fs.h> +-#endif +- + #include "nls.h" + #include "strutils.h" + #include "c.h" +@@ -49,6 +45,10 @@ + + #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; |