From 6d60c4d4684c2c03a43f1b8720497348cf17d357 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 16 Dec 2015 08:59:01 +0000 Subject: Revert "Make zlib API constness-aware" This reverts commit fb0246c6fd7cd34b820558f75eb48bba6326b768. That commit assumes that if you define Z_CONST, z_const will be defined; that is *not* the case with older versions of zlib, which don't define z_const under any circumstances. Change-Id: I6f9b7ea18922799b1aaf94dc2c63120128f2550a Reviewed-on: https://code.wireshark.org/review/12671 Reviewed-by: Guy Harris --- wiretap/wtap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wiretap/wtap.c') diff --git a/wiretap/wtap.c b/wiretap/wtap.c index c4c35e8a74..30b66cd46f 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -27,6 +27,10 @@ #include #endif +#ifdef HAVE_LIBZ +#include +#endif + #include "wtap-int.h" #include "file_wrappers.h" -- cgit v1.2.1