diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-09-13 13:31:09 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-09-13 13:31:09 +0000 |
| commit | 1906832f4363b7002e2e55219399ee4ef142a82e (patch) | |
| tree | 8fbb3ec1943ab22b8a8e103b1b6ffa03ae5bfbd5 | |
| parent | 6b6e6bc4956dfe9c97bfa204eafa932a056d9ea9 (diff) | |
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error without zlib
* src/HttpResponseCommand.cc
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/HttpResponseCommand.cc | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + Fixed compile error without zlib + * src/HttpResponseCommand.cc + +2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + Removed ChunkedDecoder. Moved GZipDecodingStreamFilter to under 'if HAVE_LIBZ'. * src/ChunkedDecoder.cc diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index 32404ba1..32fb6dbb 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -72,8 +72,10 @@ #include "StreamFilter.h" #include "SinkStreamFilter.h" #include "ChunkedDecodingStreamFilter.h" -#include "GZipDecodingStreamFilter.h" #include "uri.h" +#ifdef HAVE_LIBZ +# include "GZipDecodingStreamFilter.h" +#endif // HAVE_LIBZ namespace aria2 { @@ -459,6 +461,7 @@ bool HttpResponseCommand::skipResponseBody static bool decideFileAllocation (const SharedHandle<StreamFilter>& filter) { +#ifdef HAVE_LIBZ for(SharedHandle<StreamFilter> f = filter; !f.isNull(); f = f->getDelegate()){ // Since the compressed file's length are returned in the response header // and the decompressed file size is unknown at this point, disable file @@ -467,6 +470,7 @@ static bool decideFileAllocation return false; } } +#endif // HAVE_LIBZ return true; } |
