summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdestoragedevice.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-07 12:51:19 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-07 12:51:19 -0500
commit897752b61a622dca67b10519e989d986f460ce14 (patch)
tree03a70d35517d2ee1c856ac924d75c34dfd00716f /tdecore/tdehw/tdestoragedevice.cpp
parent9d5f5058a1e5e34b0f67c4a54a785975780119dd (diff)
downloadtdelibs-897752b61a622dca67b10519e989d986f460ce14.tar.gz
tdelibs-897752b61a622dca67b10519e989d986f460ce14.zip
Fix FTBFS when cryptsetup support disabled
Diffstat (limited to 'tdecore/tdehw/tdestoragedevice.cpp')
-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() {