summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-libs/ignition-transport/files/protobuf3.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/net-libs/ignition-transport/files/protobuf3.patch b/net-libs/ignition-transport/files/protobuf3.patch
index c5cdd32a714b..fffe2296ac0d 100644
--- a/net-libs/ignition-transport/files/protobuf3.patch
+++ b/net-libs/ignition-transport/files/protobuf3.patch
@@ -2,11 +2,13 @@ Index: ignition-transport-1.1.0/include/ignition/transport/RepHandler.hh
===================================================================
--- ignition-transport-1.1.0.orig/include/ignition/transport/RepHandler.hh
+++ ignition-transport-1.1.0/include/ignition/transport/RepHandler.hh
-@@ -22,6 +22,7 @@
+@@ -22,6 +22,9 @@
#pragma warning(push, 0)
#endif
#include <google/protobuf/message.h>
++#if GOOGLE_PROTOBUF_VERSION >= 3000000
+#include <google/protobuf/stubs/casts.h>
++#endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif