diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-04-16 04:14:54 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-04-16 04:19:49 +0000 |
commit | 270125f6a14ed285e41a29c7b0ff2f1e80643a96 (patch) | |
tree | d4161ed76b0fac747801eccc3ed917be73be3271 | |
parent | da92b2a12520842433e5cde16a7500c93631aa55 (diff) | |
download | ports-270125f6a14ed285e41a29c7b0ff2f1e80643a96.tar.gz ports-270125f6a14ed285e41a29c7b0ff2f1e80643a96.zip |
devel/ignition-msgs: Fix build with protobuf 3.20.0+
-rw-r--r-- | devel/ignition-msgs/files/patch-protobuf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/ignition-msgs/files/patch-protobuf b/devel/ignition-msgs/files/patch-protobuf new file mode 100644 index 000000000000..e2d379b7bb60 --- /dev/null +++ b/devel/ignition-msgs/files/patch-protobuf @@ -0,0 +1,25 @@ +--- src/Generator.cc.orig 2018-11-02 21:28:13 UTC ++++ src/Generator.cc +@@ -67,7 +67,7 @@ Generator::~Generator() + + ///////////////////////////////////////////////// + bool Generator::Generate(const FileDescriptor *_file, +- const string &/*_parameter*/, ++ const std::string &/*_parameter*/, + OutputDirectory *_generatorContext, + std::string * /*_error*/) const + { +--- src/Generator.hh.orig 2018-11-02 21:28:13 UTC ++++ src/Generator.hh +@@ -44,9 +44,9 @@ class Generator : public CodeGenerator + /// \param[in] _generatorContext Output directory. + /// \param[in] _error Unused string value + public: virtual bool Generate(const FileDescriptor *_file, +- const string &_parameter, ++ const std::string &_parameter, + OutputDirectory *_generatorContext, +- string *_error) const; ++ std::string *_error) const; + + // private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Generator); + }; |