summaryrefslogtreecommitdiffstats
path: root/test/twriteorder.c
diff options
context:
space:
mode:
authorBaljak <baljci@hotmail.com>2022-01-08 04:29:25 (GMT)
committerGitHub <noreply@github.com>2022-01-08 04:29:25 (GMT)
commit8430e3d661cdcf91ed60626e87be936a6f15afe8 (patch)
treeb220767ba4419f12052958f097c78c88a0e23990 /test/twriteorder.c
parentbf27121b5d01939c819ac8b5b96101a16175c4de (diff)
downloadhdf5-8430e3d661cdcf91ed60626e87be936a6f15afe8.zip
hdf5-8430e3d661cdcf91ed60626e87be936a6f15afe8.tar.gz
hdf5-8430e3d661cdcf91ed60626e87be936a6f15afe8.tar.bz2
Fix compilation issues with Mingw (#1342)
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 497542a..c58b030 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) */