mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 07:10:05 +02:00
31 lines
823 B
Plaintext
31 lines
823 B
Plaintext
From c3b20ed658c8372414e64dd9a24399c2743a54c3 Mon Sep 17 00:00:00 2001
|
|
From: Tudor Nazarie <nazarietudor@gmail.com>
|
|
Date: Tue, 27 Dec 2016 18:28:02 +0000
|
|
Subject: Build fixes for gcc2
|
|
|
|
|
|
diff --git a/src/main/extractor_datasource.c b/src/main/extractor_datasource.c
|
|
index 190834a..c41258a 100644
|
|
--- a/src/main/extractor_datasource.c
|
|
+++ b/src/main/extractor_datasource.c
|
|
@@ -564,14 +564,8 @@ cfs_init_decompressor_zlib (struct CompressedFileSource *cfs,
|
|
*
|
|
* ZLIB_VERNUM isn't defined by zlib version 1.1.4 ;
|
|
* there might be a better check.
|
|
- */
|
|
- if (Z_OK != inflateInit2 (&cfs->strm,
|
|
-#ifdef ZLIB_VERNUM
|
|
- 15 + 32
|
|
-#else
|
|
- - MAX_WBITS
|
|
-#endif
|
|
- ))
|
|
+ */
|
|
+ if (Z_OK != inflateInit(&cfs->strm))
|
|
{
|
|
LOG ("Failed to initialize zlib decompression\n");
|
|
return -1;
|
|
--
|
|
2.7.0
|
|
|