diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/kvtest.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/kvtest.c b/test/kvtest.c index 8c6915f23..bb23312a2 100644 --- a/test/kvtest.c +++ b/test/kvtest.c @@ -51,11 +51,21 @@ static const char zHelp[] = #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> #include <assert.h> #include <string.h> #include "sqlite3.h" +#ifndef _WIN32 +# include <unistd.h> +#else + /* Provide Windows equivalent for the needed parts of unistd.h */ +# include <io.h> +# define R_OK 2 +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# define access _access +#endif + + /* ** Show thqe help text and quit. */ |