From a75f88cbcd099af84570ce81c06e2a4523e213de Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 16 Sep 2020 00:28:43 -0500 Subject: [PATCH] wolfssl/test.h: gate strerror() in err_sys_with_errno() on HAVE_STRING_H && HAVE_ERRNO_H as in PR #3291. --- wolfssl/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index ac1205fa3..af50d3a34 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -509,7 +509,7 @@ WC_NORETURN void #endif err_sys_with_errno(const char* msg) { -#ifdef DEBUG_TEST_ERR_SYS_WITH_ERRNO +#if defined(HAVE_STRING_H) && defined(HAVE_ERRNO_H) printf("wolfSSL error: %s: %s\n", msg, strerror(errno)); #else printf("wolfSSL error: %s\n", msg);