mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -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.
|
* Uncomment this to enable pthread mutexes.
|
||||||
*/
|
*/
|
||||||
#ifdef __linux__
|
#if ( defined(__linux__) || defined(__FreeBSD__) )
|
||||||
#define MBEDTLS_THREADING_PTHREAD
|
#define MBEDTLS_THREADING_PTHREAD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3285,7 +3285,7 @@
|
|||||||
*
|
*
|
||||||
* Enable this layer to allow use of mutexes within mbed TLS
|
* Enable this layer to allow use of mutexes within mbed TLS
|
||||||
*/
|
*/
|
||||||
#ifdef __linux__
|
#if ( defined(__linux__) || defined(__FreeBSD__) )
|
||||||
#define MBEDTLS_THREADING_C
|
#define MBEDTLS_THREADING_C
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3807,3 +3807,16 @@
|
|||||||
//#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
//#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
||||||
|
|
||||||
/** \} name SECTION: Module configuration options */
|
/** \} 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