void-packages/srcpkgs/retroshare/patches/fix-build-with-gcc-8.patch

25 lines
901 B
Diff

From 4d287d68bc9725f403dc7d952a927d401c5d6c97 Mon Sep 17 00:00:00 2001
From: csoler <csoler@users.sourceforge.net>
Date: Wed, 9 May 2018 13:27:16 +0200
Subject: [PATCH] fixed weird mistake in grouter which causes an issue only in
gcc > 8
---
libretroshare/src/grouter/p3grouter.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libretroshare/src/grouter/p3grouter.cc b/libretroshare/src/grouter/p3grouter.cc
index 75e8fd4d6a..d184b15f5c 100644
--- libretroshare/src/grouter/p3grouter.cc
+++ libretroshare/src/grouter/p3grouter.cc
@@ -540,7 +540,7 @@ if(itm == NULL)
void GRouterTunnelInfo::removeVirtualPeer(const TurtleVirtualPeerId& vpid)
{
- std::set<TurtleVirtualPeerId,RsGRouterTransactionChunkItem*>::iterator it = virtual_peers.find(vpid) ;
+ std::set<TurtleVirtualPeerId>::iterator it = virtual_peers.find(vpid) ;
if(it == virtual_peers.end())
{