summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-03-06 22:51:31 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-03-06 22:51:31 (GMT)
commit2db84441d742433c0aee26624a7b3fd05c2dbbf2 (patch)
treed76d85f3888d9438e83946e737cda22b42162d5e /testpar
parentcad9a3376061dd76287a9a8356f08aa55f00b721 (diff)
downloadhdf5-2db84441d742433c0aee26624a7b3fd05c2dbbf2.zip
hdf5-2db84441d742433c0aee26624a7b3fd05c2dbbf2.tar.gz
hdf5-2db84441d742433c0aee26624a7b3fd05c2dbbf2.tar.bz2
ifdef around another function
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_cache_image.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testpar/t_cache_image.c b/testpar/t_cache_image.c
index d23548a..fc88c61 100644
--- a/testpar/t_cache_image.c
+++ b/testpar/t_cache_image.c
@@ -1882,6 +1882,14 @@ par_delete_dataset(int dset_num,
} /* par_delete_dataset() */
+/* This test uses many POSIX things that are not available on
+ * Windows. We're using a check for fork(2) here as a proxy for
+ * all POSIX/Unix/Linux things until this test can be made
+ * more platform-independent.
+ */
+#ifdef H5_HAVE_FORK
+
+
/*-------------------------------------------------------------------------
* Function: par_insert_cache_image()
*
@@ -1907,6 +1915,10 @@ par_delete_dataset(int dset_num,
*
* None.
*
+ *--------------------------------------
+ return;
+
+} /* par_insert_cache_image() */
*-------------------------------------------------------------------------
*/
@@ -1990,6 +2002,15 @@ par_insert_cache_image(int file_name_idx, int mpi_rank, int mpi_size )
return;
} /* par_insert_cache_image() */
+#else /* H5_HAVE_FORK */
+
+static void
+par_insert_cache_image(int file_name_idx, int mpi_rank, int mpi_size )
+{
+ return;
+} /* par_insert_cache_image() */
+
+#endif /* H5_HAVE_FORK */
/*-------------------------------------------------------------------------