summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdestoragedevice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.cpp b/tdecore/tdehw/tdestoragedevice.cpp
index cdf004fb4..618a29c1b 100644
--- a/tdecore/tdehw/tdestoragedevice.cpp
+++ b/tdecore/tdehw/tdestoragedevice.cpp
@@ -97,6 +97,7 @@ TDEDiskDeviceType::TDEDiskDeviceType TDEStorageDevice::diskType() {
}
void TDEStorageDevice::internalGetLUKSKeySlotStatus() {
+#if defined(WITH_CRYPTSETUP)
unsigned int i;
crypt_keyslot_info keyslot_status;
TDELUKSKeySlotStatus::TDELUKSKeySlotStatus tde_keyslot_status;
@@ -116,6 +117,7 @@ void TDEStorageDevice::internalGetLUKSKeySlotStatus() {
}
m_cryptKeyslotStatus.append(tde_keyslot_status);
}
+#endif
}
void TDEStorageDevice::internalInitializeLUKSIfNeeded() {