Fix FTBFS when cryptsetup support disabled

pull/1/head
Timothy Pearson 9 years ago
parent 9d5f5058a1
commit 897752b61a

@ -130,6 +130,9 @@
/* Defines if lzma/xz is compiled */ /* Defines if lzma/xz is compiled */
#cmakedefine HAVE_XZ_SUPPORT 1 #cmakedefine HAVE_XZ_SUPPORT 1
/* Define OpenSC provider library */
#cmakedefine OPENSC_PKCS11_PROVIDER_LIBRARY "@OPENSC_PKCS11_PROVIDER_LIBRARY@"
/* Defines if '[KDE4]' is added to KDE4 menu items */ /* Defines if '[KDE4]' is added to KDE4 menu items */
#cmakedefine KDE4_MENU_SUFFIX 1 #cmakedefine KDE4_MENU_SUFFIX 1

@ -97,6 +97,7 @@ TDEDiskDeviceType::TDEDiskDeviceType TDEStorageDevice::diskType() {
} }
void TDEStorageDevice::internalGetLUKSKeySlotStatus() { void TDEStorageDevice::internalGetLUKSKeySlotStatus() {
#if defined(WITH_CRYPTSETUP)
unsigned int i; unsigned int i;
crypt_keyslot_info keyslot_status; crypt_keyslot_info keyslot_status;
TDELUKSKeySlotStatus::TDELUKSKeySlotStatus tde_keyslot_status; TDELUKSKeySlotStatus::TDELUKSKeySlotStatus tde_keyslot_status;
@ -116,6 +117,7 @@ void TDEStorageDevice::internalGetLUKSKeySlotStatus() {
} }
m_cryptKeyslotStatus.append(tde_keyslot_status); m_cryptKeyslotStatus.append(tde_keyslot_status);
} }
#endif
} }
void TDEStorageDevice::internalInitializeLUKSIfNeeded() { void TDEStorageDevice::internalInitializeLUKSIfNeeded() {

Loading…
Cancel
Save