wolfssl/test.h: gate strerror() in err_sys_with_errno() on HAVE_STRING_H && HAVE_ERRNO_H as in PR #3291.

This commit is contained in:
Daniel Pouzzner
2020-09-16 00:28:43 -05:00
parent bf054838a1
commit a75f88cbcd

View File

@ -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);