summaryrefslogtreecommitdiff
path: root/src/test/test_checkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_checkdir.c')
-rw-r--r--src/test/test_checkdir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_checkdir.c b/src/test/test_checkdir.c
index a44584c0a3..d6ef353c87 100644
--- a/src/test/test_checkdir.c
+++ b/src/test/test_checkdir.c
@@ -4,7 +4,9 @@
#include "orconfig.h"
#include "or.h"
-#ifndef _WIN32
+#ifdef _WIN32
+#include <direct.h>
+#else
#include <dirent.h>
#endif