pkgsrc/security/pcsc-lite/patches/patch-aa
hasso faf9dc9a8b Update to 1.5.3.
Changelog:
pcsc-lite-1.5.3: Ludovic Rousseau
- SCardEstablishContext(): check we do not reuse an already allocated
  hContext
  Thanks to Daniel Nobs for the bug report and patch
- pcsclite.h: add missing SCARD_E_* and SCARD_W_* return code. They are
  unused by pcsc-lite but defined on Windows
- reader.h: add PIN_PROPERTIES_STRUCTURE structure and
  FEATURE_IFD_PIN_PROPERTIES
  Thanks to Martin Paljak for the patch
- remove powermgt_macosx.c since it is using APSL version 1.1 instead of
  the BSD-like licence like the other files
  Thanks to Stanislav Brabec for the bug report
- avoid a possible crash due to a race condition
  Thanks to Matheus Ribeiro for the patch
- change default log level from PCSC_LOG_INFO to PCSC_LOG_ERROR to limit
  syslog pollution
- CardDisconnect(): call RFUnlockAllSharing() instead of
  RFUnlockSharing() to release all nested locks. The problem occurs if
  SCardBeginTransaction() are made without corresponding
  SCardEndTransaction().  OpenSC "pkcs11-tool -I" exhibits such a
  behavior.
  Thanks to Marc Rios Valles for the bug report
- some other minor improvements and bug corrections
2009-04-30 06:24:10 +00:00

22 lines
716 B
Text

$NetBSD: patch-aa,v 1.2 2009/04/30 06:24:11 hasso Exp $
--- src/PCSC/reader.h.in.orig 2009-03-24 21:41:03 +0200
+++ src/PCSC/reader.h.in 2009-04-30 09:03:08 +0300
@@ -126,7 +126,7 @@
/* Set structure elements aligment on bytes
* http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html */
-#if defined(__APPLE__) | defined(sun)
+#if defined(__APPLE__) | defined(sun) | defined(__NetBSD__)
#pragma pack(1)
#else
#pragma pack(push, 1)
@@ -213,7 +213,7 @@ typedef struct {
} PIN_PROPERTIES_STRUCTURE;
/* restore default structure elements alignment */
-#if defined(__APPLE__) | defined(sun)
+#if defined(__APPLE__) | defined(sun) | defined(__NetBSD__)
#pragma pack()
#else
#pragma pack(pop)