Also guard include of mbedtls/threading.h in ssl_cookie.h when USE_PSA_CRYPTO is set

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-03-22 10:38:58 +01:00
parent 79daea25db
commit c0db7623ec

View File

@ -27,9 +27,11 @@
#include "mbedtls/ssl.h"
#if !defined(MBEDTLS_USE_PSA_CRYPTO)
#if defined(MBEDTLS_THREADING_C)
#include "mbedtls/threading.h"
#endif
#endif /* !MBEDTLS_USE_PSA_CRYPTO */
/**
* \name SECTION: Module settings