From e7cf680cccf4858a419026d02e38a685ede30418 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 3 Jul 2017 19:26:39 +0900 Subject: [PATCH] zlib is not exposed to libziparchive headers By forward-declaring zstream, we don't need to re-export zlib headers. Bug: 37342627 Test: build Test: BOARD_VNDK_VERSION=current m -j dumpstate (or any other module using libziparchive) Change-Id: Ia69e5d459c79878d491cfe4ca21a7cc8fed4a5d8 --- libziparchive/include/ziparchive/zip_writer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libziparchive/include/ziparchive/zip_writer.h b/libziparchive/include/ziparchive/zip_writer.h index 94595143d..c350a2750 100644 --- a/libziparchive/include/ziparchive/zip_writer.h +++ b/libziparchive/include/ziparchive/zip_writer.h @@ -17,7 +17,6 @@ #ifndef LIBZIPARCHIVE_ZIPWRITER_H_ #define LIBZIPARCHIVE_ZIPWRITER_H_ -#include #include #include @@ -28,6 +27,9 @@ #include "android-base/macros.h" #include "utils/Compat.h" +struct z_stream_s; +typedef struct z_stream_s z_stream; + /** * Writes a Zip file via a stateful interface. *