summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5jam/h5jamgentest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5jam/h5jamgentest.c b/tools/h5jam/h5jamgentest.c
index 2d5f253..c3981a4 100644
--- a/tools/h5jam/h5jamgentest.c
+++ b/tools/h5jam/h5jamgentest.c
@@ -551,7 +551,12 @@ int fd;
size_t i;
char *bp;
+
+ #ifdef WIN32
+ fd = _creat(name, _S_IREAD | _S_IWRITE);
+ #else /* WIN32 */
fd = creat(name,(mode_t)0777);
+ #endif /* WIN32 */
if (fd < 0) {
/* panic */
}
@@ -580,6 +585,7 @@ int fd;
int i;
char *bp;
+
fd = creat(name,0777);
if (fd < 0) {
/* panic */