mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Adapt pthread implementation to recent changes
This commit is contained in:
parent
eab147c4d0
commit
1e2eae02cb
3 changed files with 28 additions and 22 deletions
|
|
@ -42,7 +42,11 @@ extern "C" {
|
|||
|
||||
#if defined(MBEDTLS_THREADING_PTHREAD)
|
||||
#include <pthread.h>
|
||||
typedef pthread_mutex_t mbedtls_threading_mutex_t;
|
||||
typedef struct
|
||||
{
|
||||
pthread_mutex_t mutex;
|
||||
char is_valid;
|
||||
} mbedtls_threading_mutex_t;
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_THREADING_ALT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue