libxfs: fix fsmap.h inclusion
PATCH 1/1 libxfs: fix fsmap.h inclusion
If we /do/ have HAVE_GETFSMAP defined, we need to include linux/fsmap.h.
Found-by Eryu Guan <[email protected]>
Signed-off-by Darrick J. Wong <[email protected]>
--- include/linux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/linux.h +3 -1
@@ -222,7 +222,9 @@ struct fsxattr {#define FS_XFLAG_COWEXTSIZE 0x00010000/* CoW extent size allocator hint */ #endif -#ifndef HAVE_GETFSMAP +#ifdef HAVE_GETFSMAP +# include <linux/fsmap.h> +#else /* * Structure for FS_IOC_GETFSMAP. *
Quoted 4 lines · Darrick J. Wong
If we /do/ have
HAVE_GETFSMAPdefined, we need to includelinux/fsmap.h.Found-by Eryu Guan <[email protected]>Signed-off-by Darrick J. Wong <[email protected]>
Thanks.
Reviewed-by Eric Sandeen <[email protected]>
Quoted 24 lines
--- include/linux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)include/linux.h +3
-2@@ -222,7 +222,9 @@ struct fsxattr {#define FS_XFLAG_COWEXTSIZE 0x00010000/* CoW extent size allocator hint */ #endif -#ifndef HAVE_GETFSMAP +#ifdef HAVE_GETFSMAP +# include <linux/fsmap.h> +#else /* * Structure for FS_IOC_GETFSMAP. * -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html