mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 02:45:41 +01:00
Fix conditions for including string.h in error.c
<string.h> is actually needed when MBEDTLS_ERROR_C is enabled and not when only MBEDTLS_ERROR_STRERROR_DUMMY is enabled. Fix #3866. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
bce4dc028f
commit
b64e0fe5e3
2
ChangeLog.d/error-include-string.txt
Normal file
2
ChangeLog.d/error-include-string.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Bugfix
|
||||||
|
* Fix conditions for including string.h in error.c. Fixes #3866.
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
#if defined(MBEDTLS_ERROR_C)
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
#if defined(MBEDTLS_ERROR_C)
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user