diff --git a/wolfssl/test.h b/wolfssl/test.h index af50d3a34..ac1205fa3 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -509,7 +509,7 @@ WC_NORETURN void #endif err_sys_with_errno(const char* msg) { -#if defined(HAVE_STRING_H) && defined(HAVE_ERRNO_H) +#ifdef DEBUG_TEST_ERR_SYS_WITH_ERRNO printf("wolfSSL error: %s: %s\n", msg, strerror(errno)); #else printf("wolfSSL error: %s\n", msg);