Skip to content

Commit b995e64

Browse files
committed
thirdparty: enable MBEDTLS_THREADING_C and MBEDTLS_THREADING_PTHREAD on FreeBSD too
1 parent 75ae93d commit b995e64

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

thirdparty/mbedtls/include/mbedtls/mbedtls_config.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@
19031903
*
19041904
* Uncomment this to enable pthread mutexes.
19051905
*/
1906-
#ifdef __linux__
1906+
#if ( defined(__linux__) || defined(__FreeBSD__) )
19071907
#define MBEDTLS_THREADING_PTHREAD
19081908
#endif
19091909

@@ -3285,7 +3285,7 @@
32853285
*
32863286
* Enable this layer to allow use of mutexes within mbed TLS
32873287
*/
3288-
#ifdef __linux__
3288+
#if ( defined(__linux__) || defined(__FreeBSD__) )
32893289
#define MBEDTLS_THREADING_C
32903290
#endif
32913291

@@ -3807,3 +3807,16 @@
38073807
//#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
38083808

38093809
/** \} name SECTION: Module configuration options */
3810+
3811+
3812+
#if ( defined(__TINYC__) && defined(__APPLE__) && defined(__arm64__) )
3813+
#undef MBEDTLS_HAVE_ASM
3814+
#undef MBEDTLS_AESNI_C
3815+
#undef MBEDTLS_PADLOCK_C
3816+
#endif
3817+
3818+
#if ( defined(__TINYC__) && defined(__FreeBSD__) )
3819+
#undef MBEDTLS_HAVE_ASM
3820+
#undef MBEDTLS_AESNI_C
3821+
#undef MBEDTLS_PADLOCK_C
3822+
#endif

0 commit comments

Comments
 (0)