summaryrefslogtreecommitdiff
path: root/security/pcsc-lite/patches/patch-aa
blob: f1514d1db7a8bc0d4dd4f27f38b6960a3ed475ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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)