summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdestoragedevice.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-06-06 15:18:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-06-07 12:40:59 +0200
commitac7e0fac532dded716279e15fda451ff1b706290 (patch)
tree75b397b6d98923f37d5fa3b6e358096d8e6810c1 /tdecore/tdehw/tdestoragedevice.cpp
parentf23ac74e05b50cd096323aa3c809a62cf373faa0 (diff)
downloadtdelibs-ac7e0fac532dded716279e15fda451ff1b706290.tar.gz
tdelibs-ac7e0fac532dded716279e15fda451ff1b706290.zip
Fix definitions of slot constants for old cryptsetup API.
This resolves issue #137. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdecore/tdehw/tdestoragedevice.cpp')
-rw-r--r--tdecore/tdehw/tdestoragedevice.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.cpp b/tdecore/tdehw/tdestoragedevice.cpp
index 60ea51912..e3f81fce7 100644
--- a/tdecore/tdehw/tdestoragedevice.cpp
+++ b/tdecore/tdehw/tdestoragedevice.cpp
@@ -43,11 +43,9 @@
#if defined(WITH_CRYPTSETUP)
#ifdef CRYPTSETUP_OLD_API
#define class cryptsetup_class
- #define CRYPT_SLOT_INVALID INVALID
- #define CRYPT_SLOT_INACTIVE INACTIVE
- #define CRYPT_SLOT_ACTIVE ACTIVE
- #define CRYPT_SLOT_BUSY BUSY
- #define CRYPT_SLOT_ACTIVE_LAST ACTIVE
+ #define CRYPT_SLOT_INACTIVE SLOT_INACTIVE
+ #define CRYPT_SLOT_ACTIVE SLOT_ACTIVE
+ #define CRYPT_SLOT_ACTIVE_LAST SLOT_ACTIVE_LAST
#include <libcryptsetup.h>
#undef class
#else