[Spice-devel] [PATCH spice] smartcard: include libcacard.h if possible

Marc-André Lureau mlureau at redhat.com
Fri Nov 27 12:26:22 PST 2015



----- Original Message -----
> On 11/27/2015 05:49 PM, Marc-André Lureau wrote:
> > Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
> > ---
> >  server/smartcard.c | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/server/smartcard.c b/server/smartcard.c
> > index aad22aa..a2bba89 100644
> > --- a/server/smartcard.c
> > +++ b/server/smartcard.c
> > @@ -20,7 +20,13 @@
> >  #endif
> >  
> >  #include <arpa/inet.h>
> > +#ifdef USE_SMARTCARD_012
> >  #include <vscard_common.h>
> > +#else
> > +#ifdef USE_SMARTCARD
> 
> Maybe use #elif here?

#elif defined(USE_SMARTCARD) you mean.

I just copied the version that is in spice-common now, that Christophe proposed.

> 
> > +#include <libcacard.h>
> > +#endif
> > +#endif
> >  
> >  #include "reds.h"
> >  #include "char_device.h"
> > 
> 
> 
> --
> Eduardo de Barros Lima (Etrunko)
> Software Engineer - RedHat
> etrunko at redhat.com
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list