From bbc4e05434277b06843e0994c1ed891eb6a27e2d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Nov 2007 10:07:34 +0000 Subject: Andres Garcia made it build and run on windows --- docs/examples/10-at-a-time.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 #include #include +#ifdef WIN32 +#include +#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; -- cgit v1.2.3