]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: fix fsmap.h inclusion
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 30 Jun 2017 18:56:29 +0000 (13:56 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 30 Jun 2017 18:56:29 +0000 (13:56 -0500)
If we /do/ have HAVE_GETFSMAP defined, we need to include linux/fsmap.h.

Found-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/linux.h

index 38969d13692cdc1f113972952bc3dd90bd633ca8..9611a37fd5cbd243f5dcb0309c0f79d90492bb78 100644 (file)
@@ -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.
  *