Skip to content

Commit

Permalink
net-libs/ignition-transport: add version guards to the protobuf3 patc…
Browse files Browse the repository at this point in the history
…h so that protobuf2 support still works. Bug #581214 by Victor Mataré.

Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <[email protected]>
  • Loading branch information
aballier committed Apr 30, 2016
1 parent 01a0890 commit 295de3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net-libs/ignition-transport/files/protobuf3.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 295de3a

Please sign in to comment.