8039319: (smartcardio) Card.transmitControlCommand() does not work on Mac OS X
authorigerasim
Wed, 28 May 2014 11:41:26 +0400
changeset 24622 0b2ad6558dc6
parent 24621 ab51c36f66db
child 24623 c094ffea7aee
8039319: (smartcardio) Card.transmitControlCommand() does not work on Mac OS X Reviewed-by: valeriep
jdk/src/solaris/native/sun/security/smartcardio/pcsc_md.c
--- a/jdk/src/solaris/native/sun/security/smartcardio/pcsc_md.c	Tue May 27 17:26:52 2014 -0700
+++ b/jdk/src/solaris/native/sun/security/smartcardio/pcsc_md.c	Wed May 28 11:41:26 2014 +0400
@@ -136,5 +136,9 @@
     if ((*env)->ExceptionCheck(env)) {
          return;
     }
+#ifndef __APPLE__
     scardControl          = (FPTR_SCardControl)         findFunction(env, hModule, "SCardControl");
+#else
+    scardControl          = (FPTR_SCardControl)         findFunction(env, hModule, "SCardControl132");
+#endif // __APPLE__
 }