thirdparty: enable MBEDTLS_THREADING_C and MBEDTLS_THREADING_PTHREAD on FreeBSD too

This commit is contained in:
Delyan Angelov 2024-11-21 01:30:20 +02:00
parent 75ae93d80b
commit b995e64be9
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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