ibrdtn: Switch to uClibc++

Added needed patches. Some are upstream backports.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-05-19 19:28:06 -07:00
parent f3b65cbd39
commit 2a2acc4de2
5 changed files with 143 additions and 1 deletions
@@ -0,0 +1,25 @@
From 199c86591edc7e82b92903efecadc4f69ea63370 Mon Sep 17 00:00:00 2001
From: Johannes Morgenroth <jm@m-network.de>
Date: Tue, 1 Jan 2019 11:25:50 +0100
Subject: [PATCH] Add operator!=() to Bundle::block_elem
Alternative implementations of libstdcpp as uclibc++ use it in
the algorithm implemenetations.
---
ibrdtn/data/Bundle.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ibrdtn/data/Bundle.h b/ibrdtn/data/Bundle.h
index 036a2a6fb..9bbc066d7 100644
--- a/ibrdtn/data/Bundle.h
+++ b/ibrdtn/data/Bundle.h
@@ -69,6 +69,9 @@ namespace dtn
bool operator==(const dtn::data::block_t &type) const {
return (**this) == type;
}
+ bool operator!=(const dtn::data::block_t &type) const {
+ return !((**this) == type);
+ }
};
typedef std::list<block_elem> block_list;