summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h b/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
index d111bf5e002f..ff265b810d7e 100644
--- a/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
+++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
@@ -1,6 +1,6 @@
---- usr/lib/pkcs11/common/host_defs.h.orig 2010-07-29 21:28:41.000000000 +0900
-+++ usr/lib/pkcs11/common/host_defs.h 2010-10-20 00:10:01.398983092 +0900
-@@ -294,13 +294,24 @@
+--- usr/lib/pkcs11/common/host_defs.h.orig 2016-04-29 17:26:45 UTC
++++ usr/lib/pkcs11/common/host_defs.h
+@@ -294,12 +294,23 @@
/* (C) COPYRIGHT International Business Machines Corp. 2001,2002 */
@@ -9,19 +9,18 @@
#ifndef _HOST_DEFS_H
#define _HOST_DEFS_H
- #include <semaphore.h>
#include <pthread.h>
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
+#include <sys/endian.h>
-+#ifdef _BYTE_ORDER
-+#define __BYTE_ORDER _BYTE_ORDER
++#ifdef _BYTE_ORDER
++#define __BYTE_ORDER _BYTE_ORDER
+#endif
-+#ifdef _LITTLE_ENDIAN
-+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
++#ifdef _LITTLE_ENDIAN
++#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#endif
+#else
#include <endian.h>
+#endif
#include "pkcs32.h"
- // Both of the strings below have a length of 32 chars and must be
+