From 8451623b4557b03b349fa60f627ffa83951a854b Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Fri, 14 Feb 2014 22:17:54 +0100 Subject: [PATCH] lib1515.c: Added support for Windows using the Sleep function --- tests/libtest/lib1515.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/libtest/lib1515.c b/tests/libtest/lib1515.c index 943937a34e..d5c8f7d088 100644 --- a/tests/libtest/lib1515.c +++ b/tests/libtest/lib1515.c @@ -35,6 +35,10 @@ #define DNS_TIMEOUT 1 +#if defined(WIN32) || defined(_WIN32) +#define sleep(s) Sleep(s * 1000) +#endif + static int debug_callback(CURL *curl, curl_infotype info, char *msg, size_t len, void *ptr) { (void)curl;