diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-11-05 10:07:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-11-05 10:07:34 +0000 |
commit | bbc4e05434277b06843e0994c1ed891eb6a27e2d (patch) | |
tree | 9d4975d5cdcfbf0fc26a765b4d30e8ac3e9d7e54 /docs/examples | |
parent | ad6e28073c985a42e8b15d2234baa7ef67ffcb35 (diff) |
Andres Garcia made it build and run on windows
Diffstat (limited to 'docs/examples')
-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; |