diff options
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-pkcs11-tpm_stdll-host_defs.h')
-rw-r--r-- | security/opencryptoki/files/patch-usr-lib-pkcs11-tpm_stdll-host_defs.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-pkcs11-tpm_stdll-host_defs.h b/security/opencryptoki/files/patch-usr-lib-pkcs11-tpm_stdll-host_defs.h new file mode 100644 index 000000000000..dcbdda52666c --- /dev/null +++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-tpm_stdll-host_defs.h @@ -0,0 +1,28 @@ +--- usr/lib/pkcs11/tpm_stdll/host_defs.h.orig 2010-07-29 21:28:41.000000000 +0900 ++++ usr/lib/pkcs11/tpm_stdll/host_defs.h 2010-10-20 00:26:48.474982648 +0900 +@@ -2,13 +2,25 @@ + /* (C) COPYRIGHT International Business Machines Corp. 2001, 2002, 2005*/ + + ++#include <sys/types.h> + #include <sys/mman.h> + #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 ++#endif ++#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 |