aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff_zlib.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-11-30 17:35:34 +0000
committerAnders Broman <a.broman58@gmail.com>2015-12-16 05:40:41 +0000
commitfb0246c6fd7cd34b820558f75eb48bba6326b768 (patch)
treee4e3acd0e25331e71d5521c6af6f1ed6a5dff089 /epan/tvbuff_zlib.c
parentc7ac304e7487489e9a32847ec3f5e253b7d81625 (diff)
Make zlib API constness-aware
ZLIB_CONST must be defined before including zlib.h to expose 'z_const'. Change-Id: Ic0dbd59ed3c760dd84ef4546f6ff4d5d3db91519 Reviewed-on: https://code.wireshark.org/review/12547 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/tvbuff_zlib.c')
-rw-r--r--epan/tvbuff_zlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/tvbuff_zlib.c b/epan/tvbuff_zlib.c
index c92a5d506d..218ff53cb2 100644
--- a/epan/tvbuff_zlib.c
+++ b/epan/tvbuff_zlib.c
@@ -28,6 +28,7 @@
#include <string.h>
#ifdef HAVE_LIBZ
+#define ZLIB_CONST
#include <zlib.h>
#endif