aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb-r-o-c-k <brockmammen@gmail.com>2018-03-04 17:44:23 -0600
committerb-r-o-c-k <brockmammen@gmail.com>2018-03-04 17:44:23 -0600
commit773f23e00d5a4af836a854702ffb9e69fcaf61ff (patch)
tree933591455faf93a8e24190d33f76b98304252c77
parent01fc02beeee2a4c5ba66e6f93d9fb0d1fd6a4548 (diff)
downloadrneovim-773f23e00d5a4af836a854702ffb9e69fcaf61ff.tar.gz
rneovim-773f23e00d5a4af836a854702ffb9e69fcaf61ff.tar.bz2
rneovim-773f23e00d5a4af836a854702ffb9e69fcaf61ff.zip
build/msvc: Make shell-test work
MSVC doesn't have unistd.h or usleep() so it was replaced with the Sleep() WinAPI function.
-rw-r--r--test/functional/fixtures/shell-test.c5
1 files changed, 5 insertions, 0 deletions
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 <stdio.h>
#include <string.h>
#include <stdint.h>
+#ifdef WIN32
+#include <Windows.h>
+#define usleep(usecs) Sleep(usecs/1000)
+#else
#include <unistd.h>
+#endif
static void wait(void)
{