From: Daniel Stenberg Date: Mon, 5 Nov 2007 10:07:34 +0000 (+0000) Subject: Andres Garcia made it build and run on windows X-Git-Tag: curl-7_18_0~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbc4e05434277b06843e0994c1ed891eb6a27e2d;p=thirdparty%2Fcurl.git Andres Garcia made it build and run on windows --- diff --git a/docs/examples/10-at-a-time.c b/docs/examples/10-at-a-time.c index 29c7f08d96..99a031103d 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;