diff options
author | Erik Hanson <erik@slackbuilds.org> | 2017-03-15 08:02:37 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:59:39 +0700 |
commit | 655a76d62a87c763e39e870b9d0f4c810fbdd37c (patch) | |
tree | 7aa9392aeb37160c3edab4e691153104ed8eec7e /network/dobbscoin/miniupnpc-1.9-api.patch | |
parent | bfe66335ba1c073c24e7addd00cbce7b7dfe42c9 (diff) |
network/dobbscoin: Updated for version 0.10.1, patched.
Added patch from Larry Hajali for newer versions of miniupnpc.
Added documentation, example config, and desktop file, thanks
to Christoph Willing.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>.
Diffstat (limited to 'network/dobbscoin/miniupnpc-1.9-api.patch')
-rw-r--r-- | network/dobbscoin/miniupnpc-1.9-api.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/network/dobbscoin/miniupnpc-1.9-api.patch b/network/dobbscoin/miniupnpc-1.9-api.patch new file mode 100644 index 0000000000000..2fe88bac4bcdf --- /dev/null +++ b/network/dobbscoin/miniupnpc-1.9-api.patch @@ -0,0 +1,29 @@ +From 984e204d7c60f0d0c5cc7d1c3a5daefcd7433f6e Mon Sep 17 00:00:00 2001 +From: acerix <dylan@psilly.com> +Date: Wed, 7 Oct 2015 20:33:08 -0400 +Subject: [PATCH] apply bitcoin patch for miniupnpc 1.9 + +--- + src/net.cpp | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/net.cpp b/src/net.cpp +index 279ee4d..f7ea000 100644 +--- a/src/net.cpp ++++ b/src/net.cpp +@@ -1109,10 +1109,14 @@ void ThreadMapPort() + #ifndef UPNPDISCOVER_SUCCESS + /* miniupnpc 1.5 */ + devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0); +-#else ++#elif MINIUPNPC_API_VERSION < 14 + /* miniupnpc 1.6 */ + int error = 0; + devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error); ++#else ++ /* miniupnpc 1.9.20150730 */ ++ int error = 0; ++ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error); + #endif + + struct UPNPUrls urls; |