summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-11-24 02:08:05 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2015-11-25 15:16:35 +0100
commitf8db887eb0f06abbbf0f5a4fff8f93be62e3433d (patch)
tree0377ffbc012157d6062283a9028633af261736b1 /common
parent56a0cf2dad7d2dc4b75b379fdd5d0da63a827a1a (diff)
downloadspice-common-f8db887eb0f06abbbf0f5a4fff8f93be62e3433d.tar.gz
spice-common-f8db887eb0f06abbbf0f5a4fff8f93be62e3433d.tar.xz
spice-common-f8db887eb0f06abbbf0f5a4fff8f93be62e3433d.zip
Use new libcacard.h if possible
libcacard.h requires 2.5.1. Keep compatibility for older versions until the transition in distros to the standalone version is done. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> [ Christophe: add < 2.5.1 fallback ] Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Diffstat (limited to 'common')
-rw-r--r--common/messages.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/messages.h b/common/messages.h
index 5f5de54..12b1943 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -38,8 +38,12 @@
#include <spice/protocol.h>
#include <spice/macros.h>
-#ifdef USE_SMARTCARD
+#ifdef USE_SMARTCARD_012
#include <vscard_common.h>
+#else
+#ifdef USE_SMARTCARD
+#include <libcacard.h>
+#endif
#endif
#include "draw.h"