Andres Garcia made it build and run on windows

This commit is contained in:
Daniel Stenberg 2007-11-05 10:07:34 +00:00
parent ad6e28073c
commit bbc4e05434
1 changed files with 7 additions and 0 deletions

View File

@ -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;