diff options
author | Dmitry Kharitonov | 2019-01-13 21:14:06 +0500 |
---|---|---|
committer | Dmitry Kharitonov | 2019-01-13 21:14:06 +0500 |
commit | 6ce13a04eab523703a89f9859fa9776b2a9b6b53 (patch) | |
tree | ff17ecadb482c14d5c111430a2212f01ebc32692 /boost.patch | |
download | aur-6ce13a04eab523703a89f9859fa9776b2a9b6b53.tar.gz |
Initial commit
Diffstat (limited to 'boost.patch')
-rw-r--r-- | boost.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/boost.patch b/boost.patch new file mode 100644 index 000000000000..35406b23763a --- /dev/null +++ b/boost.patch @@ -0,0 +1,31 @@ +diff --git a/src/makefile.unix b/src/makefile.unix +index 350f40c..57c6f9a 100644 +--- a/src/makefile.unix ++++ b/src/makefile.unix +@@ -7,7 +7,7 @@ USE_IPV6:=1 + + LINK:=$(CXX) + +-DEFS=-DBOOST_SPIRIT_THREADSAFE ++DEFS=-DBOOST_SPIRIT_THREADSAFE -DBOOST_ASIO_ENABLE_OLD_SERVICES + + DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) + LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) +--- a/src/net.cpp ++++ b/src/net.cpp +@@ -1031,10 +1031,14 @@ void ThreadMapPort2(void* parg) + #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; |