summaryrefslogtreecommitdiffstats
path: root/test/twriteorder.c
diff options
context:
space:
mode:
authorBaljak <baljci@hotmail.com>2022-03-10 16:30:20 (GMT)
committerGitHub <noreply@github.com>2022-03-10 16:30:20 (GMT)
commit9db509762220d661904b5b902aea25cdfaf07b4c (patch)
treea7ad917ff4034e588800e4c6e30c02cba7ceb038 /test/twriteorder.c
parentfd07c2038eaf45a2cc218fa095c37201388b959b (diff)
downloadhdf5-9db509762220d661904b5b902aea25cdfaf07b4c.zip
hdf5-9db509762220d661904b5b902aea25cdfaf07b4c.tar.gz
hdf5-9db509762220d661904b5b902aea25cdfaf07b4c.tar.bz2
Merge Mingw fixes from develop (#1477)
Diffstat (limited to 'test/twriteorder.c')
-rw-r--r--test/twriteorder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/twriteorder.c b/test/twriteorder.c
index e792487..9cff00a 100644
--- a/test/twriteorder.c
+++ b/test/twriteorder.c
@@ -63,7 +63,7 @@
/* This test uses many POSIX things that are not available on
* Windows.
*/
-#ifdef H5_HAVE_UNISTD_H
+#if defined(H5_HAVE_FORK) && defined(H5_HAVE_WAITPID)
#define DATAFILE "twriteorder.dat"
/* #define READERS_MAX 10 */ /* max number of readers */
@@ -466,7 +466,7 @@ done:
return ret_value;
}
-#else /* H5_HAVE_UNISTD_H */
+#else /* defined(H5_HAVE_FORK && defined(H5_HAVE_WAITPID) */
int
main(void)
@@ -475,4 +475,4 @@ main(void)
return EXIT_SUCCESS;
} /* end main() */
-#endif /* H5_HAVE_UNISTD_H */
+#endif /* defined(H5_HAVE_FORK && defined(H5_HAVE_WAITPID) */