net.mbedtls: enable MBEDTLS_THREADING_C and MBEDTLS_THREADING_PTHREAD on OpenBSD (#24572)

This commit is contained in:
Laurent Cheylus 2025-05-25 12:19:22 +02:00 committed by GitHub
parent eebfa1ba6b
commit 52c7130a2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1903,7 +1903,7 @@
*
* Uncomment this to enable pthread mutexes.
*/
#if ( defined(__linux__) || defined(__FreeBSD__) )
#if ( defined(__linux__) || defined(__FreeBSD__) ) || defined (__OpenBSD__)
#define MBEDTLS_THREADING_PTHREAD
#endif
@ -3285,7 +3285,7 @@
*
* Enable this layer to allow use of mutexes within mbed TLS
*/
#if ( defined(__linux__) || defined(__FreeBSD__) )
#if ( defined(__linux__) || defined(__FreeBSD__) ) || defined (__OpenBSD__)
#define MBEDTLS_THREADING_C
#endif