From c38e52a3c0b061b44ebb589d362563613f2edab8 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Sun, 7 Nov 2010 12:07:17 +0000 Subject: Add opencryptoki 2.3.2, is an open PKCS#11 implementation library. Obtained from: http://bsssd.sourceforge.net/ --- .../files/patch-usr-lib-pkcs11-common-host_defs.h | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h (limited to 'security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h') 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 new file mode 100644 index 000000000000..d111bf5e002f --- /dev/null +++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h @@ -0,0 +1,27 @@ +--- 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 @@ + /* (C) COPYRIGHT International Business Machines Corp. 2001,2002 */ + + ++#include + #include + #ifndef _HOST_DEFS_H + #define _HOST_DEFS_H + + #include + #include ++#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#include ++#ifdef _BYTE_ORDER ++#define __BYTE_ORDER _BYTE_ORDER ++#endif ++#ifdef _LITTLE_ENDIAN ++#define __LITTLE_ENDIAN _LITTLE_ENDIAN ++#endif ++#else + #include ++#endif + + #include "pkcs32.h" + // Both of the strings below have a length of 32 chars and must be -- cgit v1.2.3