diff options
author | 2024-07-12 22:16:12 +0100 | |
---|---|---|
committer | 2024-07-12 22:16:12 +0100 | |
commit | 99616548f7b7246aba0069ed9de67060cf2b6b62 (patch) | |
tree | 88a939e58a0024f81a3bbb6fffaf04bbb321b329 /net-im/swift/files | |
parent | games-board/pokerth: fix build w/ boost-1.85 (diff) | |
download | gentoo-99616548f7b7246aba0069ed9de67060cf2b6b62.tar.gz gentoo-99616548f7b7246aba0069ed9de67060cf2b6b62.tar.bz2 gentoo-99616548f7b7246aba0069ed9de67060cf2b6b62.zip |
net-im/swift: build fixes
* Fix build with ICU-75.1 by building with C++17 instead of C++11 (bug #933871)
* Fix build with >=net-libs/miniupnpc-2.2.8 (bug #934054), thanks to
Bill Prendergast <dek.devel@baisenvar.info> for the patch.
Closes: https://bugs.gentoo.org/933871
Closes: https://bugs.gentoo.org/934054
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-im/swift/files')
-rw-r--r-- | net-im/swift/files/swift-4.0.3-miniupnpc.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-im/swift/files/swift-4.0.3-miniupnpc.patch b/net-im/swift/files/swift-4.0.3-miniupnpc.patch new file mode 100644 index 000000000000..db717ff1213b --- /dev/null +++ b/net-im/swift/files/swift-4.0.3-miniupnpc.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/934054 + +From: Bill Prendergast <dek.devel@baisenvar.info> + +Fix build with newer net-libs/miniupnpc (API 18) +--- a/Swiften/Network/MiniUPnPInterface.cpp ++++ b/Swiften/Network/MiniUPnPInterface.cpp +@@ -45,9 +45,16 @@ MiniUPnPInterface::MiniUPnPInterface() : p(new Private()) { + } + + char lanAddress[64]; ++#if MINIUPNPC_API_VERSION > 17 ++ char wanAddress[64]; ++ if (!UPNP_GetValidIGD(p->deviceList, &p->urls, &p->data, lanAddress, sizeof(lanAddress), wanAddress, sizeof(wanAddress))) { ++ return; ++ } ++#else + if (!UPNP_GetValidIGD(p->deviceList, &p->urls, &p->data, lanAddress, sizeof(lanAddress))) { + return; + } ++#endif + p->localAddress = std::string(lanAddress); + p->isValid = true; + } |