]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkswap: fix includes
authorKarel Zak <kzak@redhat.com>
Mon, 3 Feb 2025 10:48:23 +0000 (11:48 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Feb 2025 10:48:23 +0000 (11:48 +0100)
commit457c112475e9cbce4479214652d4fa699bc281ba
treea2783759d4d406f6d3203d3455acdec850d9e583
parentec3ecd0141c62a93a8ff221746251e96bdbe2975
mkswap: fix includes

It is preferable to use #ifdefs in code that relies on available
features, rather than solely depending on the presence of header
files. This is especially important if the functionality of FIEMAP
relies on multiple include files. Additionally, note that we also need
linux/fs.h for S_NOCOW_FL, regardless of FIEMAP.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c