diff --git a/thirdparty/mbedtls/include/mbedtls/mbedtls_config.h b/thirdparty/mbedtls/include/mbedtls/mbedtls_config.h index 2b9740476e87b4..86dc3cc3d892e4 100644 --- a/thirdparty/mbedtls/include/mbedtls/mbedtls_config.h +++ b/thirdparty/mbedtls/include/mbedtls/mbedtls_config.h @@ -1903,7 +1903,9 @@ * * Uncomment this to enable pthread mutexes. */ +#ifdef __linux__ #define MBEDTLS_THREADING_PTHREAD +#endif /** * \def MBEDTLS_USE_PSA_CRYPTO @@ -3283,7 +3285,9 @@ * * Enable this layer to allow use of mutexes within mbed TLS */ +#ifdef __linux__ #define MBEDTLS_THREADING_C +#endif /** * \def MBEDTLS_TIMING_C