diff --git a/examples/client/client.c b/examples/client/client.c index c7942ae05..b97c25e75 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -65,7 +65,7 @@ #define OCSP_STAPLINGV2_MULTI 3 #define OCSP_STAPLING_OPT_MAX OCSP_STAPLINGV2_MULTI -#if defined(XUSLEEP) && defined(NO_MAIN_DRIVER) +#if defined(XSLEEP_US) && defined(NO_MAIN_DRIVER) /* This is to force the server's thread to get a chance to * execute before continuing the resume in non-blocking * DTLS test cases. */ diff --git a/wolfssl/test.h b/wolfssl/test.h index 1188a17aa..9e192c040 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -156,6 +156,7 @@ select(0, NULL, NULL, NULL, &tv); \ } while (0) #define XSLEEP_US(u) XSELECT_WAIT(0,u) + #define XSLEEP_MS(m) XSELECT_WAIT(0,(m)*1000) #endif /* USE_WINDOWS_API */ #ifndef XSLEEP_MS