diff options
-rw-r--r-- | tools/h5jam/h5jamgentest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5jam/h5jamgentest.c b/tools/h5jam/h5jamgentest.c index 2d5f253..ada206b 100644 --- a/tools/h5jam/h5jamgentest.c +++ b/tools/h5jam/h5jamgentest.c @@ -551,7 +551,11 @@ 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 */ } |