summaryrefslogtreecommitdiff
path: root/devel/electron4/files/patch-third__party_snappy_src_snappy.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron4/files/patch-third__party_snappy_src_snappy.h')
-rw-r--r--devel/electron4/files/patch-third__party_snappy_src_snappy.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron4/files/patch-third__party_snappy_src_snappy.h b/devel/electron4/files/patch-third__party_snappy_src_snappy.h
new file mode 100644
index 000000000000..df563c71e1cb
--- /dev/null
+++ b/devel/electron4/files/patch-third__party_snappy_src_snappy.h
@@ -0,0 +1,20 @@
+--- third_party/snappy/src/snappy.h.orig 2019-03-19 09:09:00 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".
+ //