From 773f23e00d5a4af836a854702ffb9e69fcaf61ff Mon Sep 17 00:00:00 2001 From: b-r-o-c-k Date: Sun, 4 Mar 2018 17:44:23 -0600 Subject: build/msvc: Make shell-test work MSVC doesn't have unistd.h or usleep() so it was replaced with the Sleep() WinAPI function. --- test/functional/fixtures/shell-test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/functional/fixtures/shell-test.c b/test/functional/fixtures/shell-test.c index 38695ce76b..cc447d903f 100644 --- a/test/functional/fixtures/shell-test.c +++ b/test/functional/fixtures/shell-test.c @@ -4,7 +4,12 @@ #include #include #include +#ifdef WIN32 +#include +#define usleep(usecs) Sleep(usecs/1000) +#else #include +#endif static void wait(void) { -- cgit