From cb94911e1f640dfbecdfd9d2bee944f179059bfb Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 28 Sep 2017 16:39:30 -0600 Subject: [PATCH] add check for SIZEOF_LONG with sun and LP64 --- wolfssl/wolfcrypt/types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index d9bf9a7b7..59247206b 100755 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -53,7 +53,9 @@ #if !defined(_MSC_VER) && !defined(__BCPLUSPLUS__) #if !defined(SIZEOF_LONG_LONG) && !defined(SIZEOF_LONG) #if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) \ - || defined(__mips64) || defined(__x86_64__)) + || defined(__mips64) || defined(__x86_64__) || \ + ((defined(sun) || defined(__sun)) && \ + (defined(LP64) || defined(_LP64)))) /* long should be 64bit */ #define SIZEOF_LONG 8 #elif defined(__i386__) || defined(__CORTEX_M3__)