summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2023-02-08 14:39:43 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2023-02-10 17:50:27 +0100
commit1fb5107eea2182415eef50ba7bec0fdf7600659c (patch)
treecd1d5bf5e3e4f9e48eda14993a2848bd1858885a /include
parentcf204ce55ea892ffaa4ff63dac548145544679fb (diff)
downloadlvm2-1fb5107eea2182415eef50ba7bec0fdf7600659c.tar.gz
lvresize: better detection of BLKID_SUBLKS_FSINFO
Use configure detection instead of trying to directly include blkid.h inside lvresize.c - where we do not pass in BLKID_CFLAGS and since we actually do not need to use blkid there, introeduce test variable HAVE_BLKID_SUBLKS_FSINFO and avoid trying to use blkid.h in this place - this also fixes builing problem for systems without blkid.h.
Diffstat (limited to 'include')
-rw-r--r--include/configure.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configure.h.in b/include/configure.h.in
index e7abca2f1..fb5625156 100644
--- a/include/configure.h.in
+++ b/include/configure.h.in
@@ -154,6 +154,9 @@
/* Define to 1 if you have the `atexit' function. */
#undef HAVE_ATEXIT
+/* Define if blkid.h has BLKID_SUBLKS_FSINFO */
+#undef HAVE_BLKID_SUBLKS_FSINFO
+
/* Define if ioctl BLKZEROOUT can be used for device zeroing. */
#undef HAVE_BLKZEROOUT