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 From c29a82c45f7be0f7ea46311e16a46a94f2173b98 Mon Sep 17 00:00:00 2001 From: b-r-o-c-k Date: Tue, 6 Mar 2018 20:38:10 -0600 Subject: build/msvc: Make shell-test fix only apply to MSCV --- test/functional/fixtures/shell-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/fixtures/shell-test.c b/test/functional/fixtures/shell-test.c index cc447d903f..a744d5df46 100644 --- a/test/functional/fixtures/shell-test.c +++ b/test/functional/fixtures/shell-test.c @@ -4,7 +4,7 @@ #include #include #include -#ifdef WIN32 +#ifdef _MSC_VER #include #define usleep(usecs) Sleep(usecs/1000) #else -- cgit