aboutsummaryrefslogtreecommitdiff
path: root/archival/bz
diff options
context:
space:
mode:
Diffstat (limited to 'archival/bz')
-rw-r--r--archival/bz/bzlib.c2
-rw-r--r--archival/bz/bzlib.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/archival/bz/bzlib.c b/archival/bz/bzlib.c
index f27050a3c..cdb596cb1 100644
--- a/archival/bz/bzlib.c
+++ b/archival/bz/bzlib.c
@@ -363,6 +363,7 @@ case_BZ_M_FLUSHING:
/*---------------------------------------------------*/
+#if ENABLE_FEATURE_CLEAN_UP
static
void BZ2_bzCompressEnd(bz_stream *strm)
{
@@ -375,6 +376,7 @@ void BZ2_bzCompressEnd(bz_stream *strm)
free(s->crc32table);
free(strm->state);
}
+#endif
/*---------------------------------------------------*/
diff --git a/archival/bz/bzlib.h b/archival/bz/bzlib.h
index 602aab926..1bb811c4a 100644
--- a/archival/bz/bzlib.h
+++ b/archival/bz/bzlib.h
@@ -43,20 +43,22 @@ in the file LICENSE.
#define BZ_CONFIG_ERROR (-9)
typedef struct bz_stream {
+ void *state;
char *next_in;
char *next_out;
unsigned avail_in;
unsigned avail_out;
/*unsigned long long total_in;*/
unsigned long long total_out;
- void *state;
} bz_stream;
/*-- Core (low-level) library functions --*/
static void BZ2_bzCompressInit(bz_stream *strm, int blockSize100k);
static int BZ2_bzCompress(bz_stream *strm, int action);
+#if ENABLE_FEATURE_CLEAN_UP
static void BZ2_bzCompressEnd(bz_stream *strm);
+#endif
/*-------------------------------------------------------------*/
/*--- end bzlib.h ---*/