summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5Z.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Z.c b/src/H5Z.c
index c4f6a5f..386ea59 100644
--- a/src/H5Z.c
+++ b/src/H5Z.c
@@ -416,7 +416,7 @@ H5Z_zlib_c (unsigned int flags, size_t __unused__ cd_size,
const void *src, size_t dst_nbytes, void *dst/*out*/)
{
size_t ret_value = 0;
-#ifdef HAVE_ZLIB_H
+#if defined(HAVE_LIBZ) && defined(HAVE_ZLIB_H)
const Bytef *z_src = (const Bytef*)src;
Bytef *z_dst = (Bytef*)dst;
uLongf z_dst_nbytes = (uLongf)dst_nbytes;