mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
24 lines
850 B
Diff
24 lines
850 B
Diff
diff --git a/configure.ac b/configure.ac
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -808,7 +808,7 @@
|
|
saved_CFLAGS="${CFLAGS}"
|
|
CFLAGS="${CFLAGS} ${PCSC_CFLAGS}"
|
|
# We must cope with mingw32 that does not have winscard.h mingw64 has it.
|
|
- AC_CHECK_HEADERS([winscard.h],,[test "${WIN32}" != "yes" && AC_MSG_ERROR([winscard.h is required for pcsc])])
|
|
+ AC_CHECK_HEADERS([winscard.h],,[test "${WIN32}" != "yes" && AC_MSG_ERROR([winscard.h is required for pcsc])],[#include <pcsclite.h>])
|
|
AC_CHECK_HEADERS([pcsclite.h])
|
|
CFLAGS="${saved_CFLAGS}"
|
|
|
|
diff --git a/src/libopensc/internal-winscard.h b/src/libopensc/internal-winscard.h
|
|
--- a/src/libopensc/internal-winscard.h
|
|
+++ b/src/libopensc/internal-winscard.h
|
|
@@ -46,6 +46,7 @@
|
|
#endif
|
|
|
|
#ifdef HAVE_WINSCARD_H
|
|
+#include <pcsclite.h>
|
|
#include <winscard.h>
|
|
#ifdef __APPLE__
|
|
#include <wintypes.h>
|