changeset 9616:b859ef8cf29f

8039319: (smartcardio) Card.transmitControlCommand() does not work on Mac OS X Reviewed-by: valeriep
author igerasim
date Thu, 29 May 2014 13:47:38 +0400
parents aa2e45454c2b
children 31bf32b1d2ec
files src/solaris/native/sun/security/smartcardio/pcsc_md.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/security/smartcardio/pcsc_md.c	Fri May 23 07:07:33 2014 +0400
+++ b/src/solaris/native/sun/security/smartcardio/pcsc_md.c	Thu May 29 13:47:38 2014 +0400
@@ -105,5 +105,9 @@
     scardListReaders      = (FPTR_SCardListReaders)     findFunction(env, hModule, "SCardListReaders");
     scardBeginTransaction = (FPTR_SCardBeginTransaction)findFunction(env, hModule, "SCardBeginTransaction");
     scardEndTransaction   = (FPTR_SCardEndTransaction)  findFunction(env, hModule, "SCardEndTransaction");
+#ifndef __APPLE__
     scardControl          = (FPTR_SCardControl)         findFunction(env, hModule, "SCardControl");
+#else
+    scardControl          = (FPTR_SCardControl)         findFunction(env, hModule, "SCardControl132");
+#endif // __APPLE__
 }