diff options
-rw-r--r-- | docs/examples/10-at-a-time.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/examples/10-at-a-time.c b/docs/examples/10-at-a-time.c index 29c7f08d9..99a031103 100644 --- a/docs/examples/10-at-a-time.c +++ b/docs/examples/10-at-a-time.c @@ -18,6 +18,9 @@ #include <string.h> #include <unistd.h> #include <curl/multi.h> +#ifdef WIN32 +#include <windows.h> +#endif static const char *urls[] = { "http://www.microsoft.com", @@ -138,7 +141,11 @@ int main(void) L = 100; if (M == -1) { +#ifdef WIN32 + Sleep(L); +#else sleep(L / 1000); +#endif } else { T.tv_sec = L/1000; T.tv_usec = (L%1000)*1000; |