]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Fix non-Linux build
authorSamuel Thibault <samuel.thibault@gnu.org>
Sun, 12 Jan 2025 15:39:44 +0000 (16:39 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Jan 2025 10:47:31 +0000 (11:47 +0100)
commit6cde5ae6812641811099960d2c377dd41c31c6cc
treea6d97147869e7bd66a6e1ab2104807515816fc01
parentfc9c9385b0d1bc06894c99472422c96490cbcfc3
Fix non-Linux build

This fixes non-Linux builds, by:

- making sfdisk discard option conditioned by availability of BLKDISCARD
- defining and using blkid_probe_get_buffer only if O_DIRECT is
  available
- always building src/fs_statmount.c and src/tab_listmount.c, they
  already contain proper conditions to make them void if support is not
  available.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
disk-utils/sfdisk.c
libblkid/src/probe.c
libblkid/src/superblocks/ext.c
libmount/meson.build
libmount/src/Makemodule.am