Skip to content

Commit

Permalink
thirdparty: enable MBEDTLS_THREADING_C and MBEDTLS_THREADING_PTHREAD …
Browse files Browse the repository at this point in the history
…on FreeBSD too
  • Loading branch information
spytheman committed Nov 20, 2024
1 parent 75ae93d commit b995e64
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions thirdparty/mbedtls/include/mbedtls/mbedtls_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@
*
* Uncomment this to enable pthread mutexes.
*/
#ifdef __linux__
#if ( defined(__linux__) || defined(__FreeBSD__) )
#define MBEDTLS_THREADING_PTHREAD
#endif

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit b995e64

Please sign in to comment.