summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/libtar.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmtar/libtar.c')
-rw-r--r--Utilities/cmtar/libtar.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c
index e470da5..9131512 100644
--- a/Utilities/cmtar/libtar.c
+++ b/Utilities/cmtar/libtar.c
@@ -36,8 +36,17 @@
#endif
#ifdef HAVE_LIBZ
+#ifdef HAVE_VTK_LIBZ
+# include <vtkzlib/zlib.h>
+# define cm_zlib_gzdopen gzdopen
+# define cm_zlib_gzclose gzclose
+# define cm_zlib_gzread gzread
+# define cm_zlib_gzwrite gzwrite
+
+#else
# include <cmzlib/zlib.h>
#endif
+#endif
#include <libtar/compat.h>