summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/h5test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 25b1ec1..6b43180 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -15,6 +15,7 @@
#ifdef WIN32
#include <process.h>
+#include <direct.h>
#endif /* WIN32 */
/*
@@ -393,7 +394,7 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size)
if (stat(fullname, &buf) < 0)
/* The directory doesn't exist just yet */
- if (mkdir(fullname, 0755) < 0 && errno != EEXIST)
+ if (HDmkdir(fullname, 0755) < 0 && errno != EEXIST)
/* We couldn't make the "/tmp/${USER,LOGIN}" subdirectory.
* Default to PREFIX's original prefix value. */
strcpy(fullname, prefix);