mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-08 09:20:11 +01:00
Use #if for USE_UDEV.
This commit is contained in:
@@ -61,7 +61,7 @@ static int _dm_udev_wait(uint32_t cookie) { return 0; };
|
||||
|
||||
static int _dm_use_udev(void)
|
||||
{
|
||||
#ifdef USE_UDEV /* cannot be enabled if devmapper is too old */
|
||||
#if USE_UDEV /* cannot be enabled if devmapper is too old */
|
||||
return dm_udev_get_sync_support();
|
||||
#else
|
||||
return 0;
|
||||
|
||||
@@ -425,7 +425,7 @@ void tools_package_version(const char *name, bool use_pwlibs)
|
||||
bool udev = false, blkid = false, keyring = false, fips = false,
|
||||
kernel_capi = false, pwquality = false, passwdqc = false,
|
||||
hw_opal = false;
|
||||
#ifdef USE_UDEV
|
||||
#if USE_UDEV
|
||||
udev = true;
|
||||
#endif
|
||||
#ifdef HAVE_BLKID
|
||||
|
||||
Reference in New Issue
Block a user