aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-02-14 22:17:54 +0100
committerMarc Hoersken <info@marc-hoersken.de>2014-02-14 22:17:54 +0100
commit8451623b4557b03b349fa60f627ffa83951a854b (patch)
treeffe2ed95cf3bb98093a3bbd964b679436398ec7a /tests
parent0a568867c0ee0eec283ce282f707e7a1338dcc44 (diff)
lib1515.c: Added support for Windows using the Sleep function
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib1515.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/lib1515.c b/tests/libtest/lib1515.c
index 943937a34..d5c8f7d08 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;