0008-third-party-boringssl-src.patch 496 B

12345678910111213
  1. diff --git a/include/openssl/base.h b/include/openssl/base.h
  2. index b63023664..a89a90e64 100644
  3. --- a/include/openssl/base.h
  4. +++ b/include/openssl/base.h
  5. @@ -118,6 +118,8 @@ extern "C" {
  6. #define OPENSSL_32_BIT
  7. #elif defined(__myriad2__)
  8. #define OPENSSL_32_BIT
  9. +#elif defined(__riscv) && __riscv_xlen == 64
  10. +#define OPENSSL_64_BIT
  11. #else
  12. // Note BoringSSL only supports standard 32-bit and 64-bit two's-complement,
  13. // little-endian architectures. Functions will not produce the correct answer