[Spice-devel] [spice-gtk] smartcard: Fix compilation with older libcacard
Christophe Fergeau
cfergeau at redhat.com
Wed Dec 9 03:06:32 PST 2015
e0c2182937 dropped some #include from channel-smartcard.c and spicy.c as
they were redundant with the headers already included from
spice-common/common/messages.h. While this is true for the newer
libcacard.h header, we need to include more headers to support older
libcacard, or compilation breaks.
---
src/channel-smartcard.c | 4 ++++
src/spicy.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/src/channel-smartcard.c b/src/channel-smartcard.c
index 7403431..b5535e6 100644
--- a/src/channel-smartcard.c
+++ b/src/channel-smartcard.c
@@ -17,6 +17,10 @@
*/
#include "config.h"
+#ifdef USE_SMARTCARD_012
+#include <vreader.h>
+#endif
+
#include "spice-client.h"
#include "spice-common.h"
diff --git a/src/spicy.c b/src/spicy.c
index 38ef159..12ae653 100644
--- a/src/spicy.c
+++ b/src/spicy.c
@@ -24,6 +24,10 @@
#include <termios.h>
#endif
+#ifdef USE_SMARTCARD_012
+#include <vreader.h>
+#endif
+
#include "glib-compat.h"
#include "spice-widget.h"
#include "spice-gtk-session.h"
--
2.5.0
More information about the Spice-devel
mailing list