]> granicus.if.org Git - curl/commitdiff
lib1515.c: Added support for Windows using the Sleep function
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 14 Feb 2014 21:17:54 +0000 (22:17 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Fri, 14 Feb 2014 21:17:54 +0000 (22:17 +0100)
tests/libtest/lib1515.c

index 943937a34ec5e9c56405d166264584811e14f75e..d5c8f7d088de2df66cdd6bd871015fe2b231d895 100644 (file)
 
 #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;