Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make Yubikey support build on OS X
Doesn't work though; I can't get pcscd to detect either of my CCID USB
devices at all. But probably Not My Fault™.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Nov 13, 2014
1 parent 85e7863 commit 1fbc469
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -60,6 +60,10 @@ case $host_os in
LIBPCSCLITE_LIBS=-lwinscard
LIBPCSCLITE_CFLAGS=" "
;;
*darwin*)
LIBPCSCLITE_LIBS="-Wl,-framework -Wl,PCSC"
LIBPCSCLITE_CFLAGS=" "
;;
*)
# On FreeBSD the only way to get vsyslog() visible is to define
# *nothing*, which makes absolutely everything visible.
Expand Down
5 changes: 5 additions & 0 deletions openconnect-internal.h
Expand Up @@ -90,8 +90,13 @@
#endif

#ifdef HAVE_LIBPCSCLITE
#ifdef __APPLE__
#include <PCSC/wintypes.h>
#include <PCSC/winscard.h>
#else
#include <winscard.h>
#endif
#endif

#ifdef ENABLE_NLS
#include <libintl.h>
Expand Down

0 comments on commit 1fbc469

Please sign in to comment.