diff options
author | Michele Calgaro <[email protected]> | 2021-04-29 10:45:28 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-05-02 12:19:09 +0900 |
commit | 8b79083f967ee6de83a04c02a40d6c20d9a980d4 (patch) | |
tree | 82ccdc1150984858a5355e42508c760dd25c4d1a /kdesktop/lockeng.cpp | |
parent | dcce5a276f9d10310f4724d902dd883a933788ac (diff) | |
download | tdebase-8b79083f967ee6de83a04c02a40d6c20d9a980d4.tar.gz tdebase-8b79083f967ee6de83a04c02a40d6c20d9a980d4.zip |
Fixed FTBFS when building tdelibs/tdebase without tdehw.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdesktop/lockeng.cpp')
-rw-r--r-- | kdesktop/lockeng.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/kdesktop/lockeng.cpp b/kdesktop/lockeng.cpp index f02e51440..75c2e5f98 100644 --- a/kdesktop/lockeng.cpp +++ b/kdesktop/lockeng.cpp @@ -11,18 +11,20 @@ #include <stdlib.h> #include <sys/stat.h> +#include <tdeglobal.h> +#ifdef __TDE_HAVE_TDEHWLIB #include <ksslcertificate.h> - +#include <kuser.h> #include <tdehardwaredevices.h> #include <tdecryptographiccarddevice.h> +#endif #include <kstandarddirs.h> #include <tdeapplication.h> #include <kservicegroup.h> #include <ksimpleconfig.h> #include <kdebug.h> -#include <kuser.h> #include <tdelocale.h> #include <tqfile.h> #include <tqtimer.h> @@ -198,6 +200,7 @@ SaverEngine::SaverEngine() delete config; config = NULL; +#ifdef __TDE_HAVE_TDEHWLIB // Initialize SmartCard readers TDEGenericDevice *hwdevice; TDEHardwareDevices *hwdevices = TDEGlobal::hardwareDevices(); @@ -221,6 +224,7 @@ SaverEngine::SaverEngine() } flagFile.close(); } +#endif dBusConnect(); } @@ -261,6 +265,7 @@ void SaverEngine::cardStartupTimeout() { } void SaverEngine::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) { +#ifdef __TDE_HAVE_TDEHWLIB TQString login_name = TQString::null; X509CertificatePtrList certList = cdevice->cardX509Certificates(); if (certList.count() > 0) { @@ -282,9 +287,11 @@ void SaverEngine::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) mValidCryptoCardInserted = true; } } +#endif } void SaverEngine::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) { +#ifdef __TDE_HAVE_TDEHWLIB if (mValidCryptoCardInserted) { mValidCryptoCardInserted = false; @@ -294,6 +301,7 @@ void SaverEngine::cryptographicCardRemoved(TDECryptographicCardDevice* cdevice) // Force lock lockScreen(); } +#endif } //--------------------------------------------------------------------------- |