summaryrefslogtreecommitdiff
path: root/net-analyzer/ostinato/files/ostinato-0.9_p20180522-buildfix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/ostinato/files/ostinato-0.9_p20180522-buildfix.patch')
-rw-r--r--net-analyzer/ostinato/files/ostinato-0.9_p20180522-buildfix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-analyzer/ostinato/files/ostinato-0.9_p20180522-buildfix.patch b/net-analyzer/ostinato/files/ostinato-0.9_p20180522-buildfix.patch
new file mode 100644
index 000000000000..ff09d689ae5c
--- /dev/null
+++ b/net-analyzer/ostinato/files/ostinato-0.9_p20180522-buildfix.patch
@@ -0,0 +1,17 @@
+--- a/common/mld.cpp 2018-05-22 18:18:21.000000000 +0200
++++ b/common/mld.cpp 2018-06-26 13:59:58.562569302 +0200
+@@ -24,6 +24,14 @@
+ #include <QHostAddress>
+ #include <QStringList>
+
++template <> inline Q_DECL_CONSTEXPR unsigned long qbswap<unsigned long>(unsigned long source) {
++ if (sizeof(unsigned long) == 8) {
++ return qbswap<quint64>(quint64(source));
++ } else {
++ return qbswap<quint32>(quint32(source));
++ }
++}
++
+ MldProtocol::MldProtocol(StreamBase *stream, AbstractProtocol *parent)
+ : GmpProtocol(stream, parent)
+ {