updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / fusecompress / fusecompress.patch
blobc1309bec528b12c0780672c6ed0cc4234989d9ea
1 --- src/rlog/rlog.h~ 2009-10-14 22:29:17.265283827 +0600
2 +++ src/rlog/rlog.h 2009-10-14 22:29:26.515285193 +0600
3 @@ -4,6 +4,7 @@
4 #include <syslog.h>
5 #include <stdarg.h>
6 #include <string>
7 +#include <cstdio>
9 namespace rlog {
11 --- src/boost/iostreams/filter/lzma.hpp~ 2009-10-14 22:41:53.878541893 +0600
12 +++ src/boost/iostreams/filter/lzma.hpp 2009-10-14 22:44:12.078529051 +0600
13 @@ -47,10 +47,10 @@
15 // Compression levels
17 -BOOST_IOSTREAMS_DECL extern const lzma_easy_level no_compression;
18 -BOOST_IOSTREAMS_DECL extern const lzma_easy_level best_speed;
19 -BOOST_IOSTREAMS_DECL extern const lzma_easy_level best_compression;
20 -BOOST_IOSTREAMS_DECL extern const lzma_easy_level default_compression;
21 +BOOST_IOSTREAMS_DECL extern const uint32_t no_compression;
22 +BOOST_IOSTREAMS_DECL extern const uint32_t best_speed;
23 +BOOST_IOSTREAMS_DECL extern const uint32_t best_compression;
24 +BOOST_IOSTREAMS_DECL extern const uint32_t default_compression;
26 // Status codes
28 @@ -88,10 +88,10 @@
29 struct lzma_params {
31 // Non-explicit constructor.
32 - lzma_params( lzma_easy_level level = lzma::default_compression )
33 + lzma_params( uint32_t level = lzma::default_compression )
34 : level(level)
35 { }
36 - lzma_easy_level level;
37 + uint32_t level;
41 --- src/boost/iostreams/filter/lzma.cpp~ 2009-10-14 22:44:21.335193915 +0600
42 +++ src/boost/iostreams/filter/lzma.cpp 2009-10-14 22:45:44.868520963 +0600
43 @@ -28,10 +28,10 @@
45 // Compression levels
47 -const lzma_easy_level no_compression = LZMA_EASY_COPY;
48 -const lzma_easy_level best_speed = LZMA_EASY_LZMA2_1;
49 -const lzma_easy_level best_compression = LZMA_EASY_LZMA_9;
50 -const lzma_easy_level default_compression = LZMA_EASY_LZMA_7;
51 +const uint32_t no_compression = 0;
52 +const uint32_t best_speed = 1;
53 +const uint32_t best_compression = 9;
54 +const uint32_t default_compression = 2;
56 // Status codes
58 @@ -39,7 +39,7 @@
59 const int stream_end = LZMA_STREAM_END;
60 const int unsupported_check = LZMA_UNSUPPORTED_CHECK;
61 const int mem_error = LZMA_MEM_ERROR;
62 -const int header_error = LZMA_HEADER_ERROR;
63 +const int header_error = LZMA_OPTIONS_ERROR;
64 const int data_error = LZMA_DATA_ERROR;
65 const int buf_error = LZMA_BUF_ERROR;
66 const int prog_error = LZMA_PROG_ERROR;
67 @@ -135,7 +135,7 @@
69 lzma_error::check(
70 compress ?
71 - lzma_easy_encoder(s, p.level) :
72 + lzma_easy_encoder(s, p.level, LZMA_CHECK_CRC32) :
73 lzma_stream_decoder(s, 100 * 1024 * 1024, 0 )