diff options
author | Allen Winter <allen.winter@kdab.com> | 2014-09-15 17:38:04 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2014-09-15 17:38:04 -0400 |
commit | f0d05a205a8f56c0213b412d4ba738df1ceefa54 (patch) | |
tree | ca14be10449f0f9139eed205649c6dc56ce5561a /src/test/testmime.c | |
parent | 9eb5fa38dc2c6f01ad512d492236ada4ac7d7813 (diff) | |
download | libical-git-f0d05a205a8f56c0213b412d4ba738df1ceefa54.tar.gz |
fix compiler warnings for MinGW on Windows
Diffstat (limited to 'src/test/testmime.c')
-rw-r--r-- | src/test/testmime.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/testmime.c b/src/test/testmime.c index effb495d..817f1092 100644 --- a/src/test/testmime.c +++ b/src/test/testmime.c @@ -42,7 +42,10 @@ #include <stdlib.h> /* For rand */ #include <string.h> /* for strrchr, strdup*/ #if defined(HAVE_UNISTD_H) -#include <unistd.h> /* for getopt */ +#include <unistd.h> /* for getopt, sleep */ +#endif +#ifdef WIN32 +#include <windows.h> /* for Sleep */ #endif /*int sspm_parse_mime(struct sspm_part *parts, @@ -326,7 +329,7 @@ int main(int argc, char* argv[]) { if (opt.sleep != 0){ #ifdef WIN32 - _sleep(opt.sleep*1000); + Sleep(opt.sleep*1000); #else sleep(opt.sleep); #endif |