diff options
Diffstat (limited to 'test/context.c')
-rw-r--r-- | test/context.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/context.c b/test/context.c index 13d47a1..2f5fd37 100644 --- a/test/context.c +++ b/test/context.c @@ -30,7 +30,15 @@ #include <sys/stat.h> #include <sys/types.h> -#include <unistd.h> +#ifdef _MSC_VER +# include <io.h> +# include <direct.h> +# ifndef S_ISDIR +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# endif +#else +# include <unistd.h> +#endif /* keeps a cache of all makedir/maketmpdir directories so we can free and * rmdir them in one go, see unmakedirs() */ |