MFH: r523939
www/iridium: copy snappy fix from chromium just like chromium (from which it was forked), iridium embeds a copy of snappy (the compression library) and cannot be fully switched to the system-provided archivers/snappy in an easy way. consider this a band-aid patch Reported by: pkubaj Approved by: portmgr (blanket: web browser, build fix)
This commit is contained in:
parent
ece1717585
commit
2b54514083
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q1/; revision=523940
20
www/iridium/files/patch-third__party_snappy_src_snappy.h
Normal file
20
www/iridium/files/patch-third__party_snappy_src_snappy.h
Normal file
@ -0,0 +1,20 @@
|
||||
--- third_party/snappy/src/snappy.h.orig 2020-01-22 18:43:16 UTC
|
||||
+++ third_party/snappy/src/snappy.h
|
||||
@@ -73,7 +73,7 @@ namespace snappy {
|
||||
// Original contents of *output are lost.
|
||||
//
|
||||
// REQUIRES: "input[]" is not an alias of "*output".
|
||||
- size_t Compress(const char* input, size_t input_length, string* output);
|
||||
+ size_t Compress(const char* input, size_t input_length, std::string* output);
|
||||
|
||||
// Decompresses "compressed[0,compressed_length-1]" to "*uncompressed".
|
||||
// Original contents of "*uncompressed" are lost.
|
||||
@@ -82,7 +82,7 @@ namespace snappy {
|
||||
//
|
||||
// returns false if the message is corrupted and could not be decompressed
|
||||
bool Uncompress(const char* compressed, size_t compressed_length,
|
||||
- string* uncompressed);
|
||||
+ std::string* uncompressed);
|
||||
|
||||
// Decompresses "compressed" to "*uncompressed".
|
||||
//
|
Loading…
Reference in New Issue
Block a user