mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
thirdparty: enable MBEDTLS_THREADING_C and MBEDTLS_THREADING_PTHREAD on FreeBSD too
This commit is contained in:
parent
75ae93d80b
commit
b995e64be9
@ -1903,7 +1903,7 @@
|
||||
*
|
||||
* Uncomment this to enable pthread mutexes.
|
||||
*/
|
||||
#ifdef __linux__
|
||||
#if ( defined(__linux__) || defined(__FreeBSD__) )
|
||||
#define MBEDTLS_THREADING_PTHREAD
|
||||
#endif
|
||||
|
||||
@ -3285,7 +3285,7 @@
|
||||
*
|
||||
* Enable this layer to allow use of mutexes within mbed TLS
|
||||
*/
|
||||
#ifdef __linux__
|
||||
#if ( defined(__linux__) || defined(__FreeBSD__) )
|
||||
#define MBEDTLS_THREADING_C
|
||||
#endif
|
||||
|
||||
@ -3807,3 +3807,16 @@
|
||||
//#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
||||
|
||||
/** \} name SECTION: Module configuration options */
|
||||
|
||||
|
||||
#if ( defined(__TINYC__) && defined(__APPLE__) && defined(__arm64__) )
|
||||
#undef MBEDTLS_HAVE_ASM
|
||||
#undef MBEDTLS_AESNI_C
|
||||
#undef MBEDTLS_PADLOCK_C
|
||||
#endif
|
||||
|
||||
#if ( defined(__TINYC__) && defined(__FreeBSD__) )
|
||||
#undef MBEDTLS_HAVE_ASM
|
||||
#undef MBEDTLS_AESNI_C
|
||||
#undef MBEDTLS_PADLOCK_C
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user