From 1fbc4690e9bc31ecfb37f2a704b3c79e50d0cbab Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 13 Nov 2014 12:50:30 +0000 Subject: [PATCH] Make Yubikey support build on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- configure.ac | 4 ++++ openconnect-internal.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index ea9b288c..b8670751 100644 --- a/configure.ac +++ b/configure.ac @@ -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. diff --git a/openconnect-internal.h b/openconnect-internal.h index 60297441..b61123c7 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -90,8 +90,13 @@ #endif #ifdef HAVE_LIBPCSCLITE +#ifdef __APPLE__ +#include +#include +#else #include #endif +#endif #ifdef ENABLE_NLS #include