summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_common.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-01-29 21:57:32 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-01-29 21:57:32 (GMT)
commiteb6e5949c7cfd185ca073117b7a04e56f1d14a70 (patch)
tree5152bccea3e3c80d5855c7f1c935bc1988679189 /src/H5VLiod_common.c
parent27f42f93dbf61accb226f13e40561fdc250af8bb (diff)
downloadhdf5-eb6e5949c7cfd185ca073117b7a04e56f1d14a70.zip
hdf5-eb6e5949c7cfd185ca073117b7a04e56f1d14a70.tar.gz
hdf5-eb6e5949c7cfd185ca073117b7a04e56f1d14a70.tar.bz2
[svn-r24661] add ifdefs around mchecksum header and usage.
Diffstat (limited to 'src/H5VLiod_common.c')
-rw-r--r--src/H5VLiod_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/H5VLiod_common.c b/src/H5VLiod_common.c
index 38e60fc..c22be61 100644
--- a/src/H5VLiod_common.c
+++ b/src/H5VLiod_common.c
@@ -12,8 +12,10 @@
#include <string.h>
#include <unistd.h>
#include <assert.h>
-#include <mchecksum.h> /* Mercury Checksum library */
#include "H5VLiod_common.h"
+#ifdef H5_HAVE_EFF
+#include <mchecksum.h> /* Mercury Checksum library */
+#endif /* H5_HAVE_EFF */
/*
* Local typedefs
@@ -925,6 +927,8 @@ H5VL_iod_free_list_free(void **free_list, size_t free_list_len)
free(free_list);
} /* end H5VL_iod_free_list_free() */
+#ifdef H5_HAVE_EFF
+
uint64_t
H5_checksum_crc64(const void *buf, size_t buf_size)
{
@@ -1014,3 +1018,4 @@ H5_checksum_crc64_fragments(void **buf, size_t *buf_size, size_t count)
return ret_value;
}
+#endif /* H5_HAVE_EFF */