mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Fix build with new pcsc.
PR: ports/109400 Submitted by: Toomas Aas<toomas.aas@raad.tartu.ee>
This commit is contained in:
parent
78367fc733
commit
c40ea65aee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185757
19
security/opensc/files/patch-src_libopensc_reader-pcsc.c
Normal file
19
security/opensc/files/patch-src_libopensc_reader-pcsc.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- src/libopensc/reader-pcsc.c.orig Fri Feb 23 22:13:56 2007
|
||||
+++ src/libopensc/reader-pcsc.c Fri Feb 23 22:14:40 2007
|
||||
@@ -60,7 +60,6 @@
|
||||
#undef SCARD_PROTOCOL_ANY
|
||||
#define SCARD_PROTOCOL_ANY (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1)
|
||||
#ifdef _WIN32
|
||||
-#define SCARD_SCOPE_GLOBAL SCARD_SCOPE_USER
|
||||
|
||||
/* Error printing */
|
||||
#define PCSC_ERROR(ctx, desc, rv) sc_error(ctx, desc ": %lx\n", rv);
|
||||
@@ -717,7 +716,7 @@
|
||||
struct pcsc_global_private_data *gpriv;
|
||||
scconf_block *conf_block;
|
||||
|
||||
- rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL,
|
||||
+ rv = SCardEstablishContext(SCARD_SCOPE_USER,
|
||||
NULL, NULL, &pcsc_ctx);
|
||||
if (rv != SCARD_S_SUCCESS)
|
||||
return pcsc_ret_to_error(rv);
|
Loading…
Reference in New Issue
Block a user