diff options
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 |