]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: ifdef STATMOUNT_* in sample
authorKarel Zak <kzak@redhat.com>
Tue, 20 Aug 2024 19:24:23 +0000 (21:24 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:42 +0000 (13:57 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/samples/listmount.c

index aeca96d589e3a60bc13c87721cb62997f58b77d8..e346ebbe5842f199c053a098e36b07a2e298b48e 100644 (file)
@@ -77,7 +77,9 @@ int main(int argc, char *argv[])
 
        /* Without this mask setting, the library will make two statmount() calls
         * for each node. */
+#if defined(STATMOUNT_MNT_POINT) && defined(STATMOUNT_FS_TYPE)
        mnt_statmnt_set_mask(sm, STATMOUNT_MNT_POINT | STATMOUNT_FS_TYPE);
+#endif
 
        /* force fetch all data
        mnt_statmnt_set_mask(sm,