summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 06197a6..f5bd847 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -242,7 +242,11 @@ int UNUSED argc, const char UNUSED *argv[]
} else if (!strcmp(driver, drivernames[MPIPOSIX_IDX])) {
/* MPI-I/O Driver */
if((fapl = H5Pcreate(H5P_FILE_ACCESS))>=0) {
- H5Pset_fapl_mpiposix(fapl, MPI_COMM_WORLD, TRUE);
+#ifdef H5_WANT_H5_V1_4_COMPAT
+ H5Pset_fapl_mpiposix(fapl, MPI_COMM_WORLD);
+#else
+ H5Pset_fapl_mpiposix(fapl, MPI_COMM_WORLD, TRUE);
+#endif
/* Initialize the MPI library, if it wasn't already */
if(!h5tools_mpi_init_g) {