diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-12-12 23:50:51 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-12-12 23:50:51 +0800 |
commit | a63adf97cd8dcf5808fa63dfcc56281bb7297c07 (patch) | |
tree | 39397d8844f61aaac80f75ef13bd3101176bf2f1 /security/i2pd | |
parent | 501db56804b083bcc54973cd0b8268229f131330 (diff) | |
download | freebsd-ports-gnome-a63adf97cd8dcf5808fa63dfcc56281bb7297c07.tar.gz freebsd-ports-gnome-a63adf97cd8dcf5808fa63dfcc56281bb7297c07.tar.zst freebsd-ports-gnome-a63adf97cd8dcf5808fa63dfcc56281bb7297c07.zip |
- Fix build with boost 1.66
PR: 224179
Reported by: jbeich@FreeBSD.org
Diffstat (limited to 'security/i2pd')
-rw-r--r-- | security/i2pd/files/patch-daemon_I2PControl.cpp | 11 | ||||
-rw-r--r-- | security/i2pd/files/patch-libi2pd_I2PEndian.h | 16 | ||||
-rw-r--r-- | security/i2pd/files/patch-libi2pd_Reseed.cpp | 11 |
3 files changed, 38 insertions, 0 deletions
diff --git a/security/i2pd/files/patch-daemon_I2PControl.cpp b/security/i2pd/files/patch-daemon_I2PControl.cpp new file mode 100644 index 000000000000..e45bc92bdfff --- /dev/null +++ b/security/i2pd/files/patch-daemon_I2PControl.cpp @@ -0,0 +1,11 @@ +--- daemon/I2PControl.cpp.orig 2017-12-04 18:40:32 UTC ++++ daemon/I2PControl.cpp +@@ -35,7 +35,7 @@ namespace client + I2PControlService::I2PControlService (const std::string& address, int port): + m_IsRunning (false), m_Thread (nullptr), + m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(address), port)), +- m_SSLContext (m_Service, boost::asio::ssl::context::sslv23), ++ m_SSLContext (boost::asio::ssl::context::sslv23), + m_ShutdownTimer (m_Service) + { + i2p::config::GetOption("i2pcontrol.password", m_Password); diff --git a/security/i2pd/files/patch-libi2pd_I2PEndian.h b/security/i2pd/files/patch-libi2pd_I2PEndian.h new file mode 100644 index 000000000000..218622fa0df7 --- /dev/null +++ b/security/i2pd/files/patch-libi2pd_I2PEndian.h @@ -0,0 +1,16 @@ +--- libi2pd/I2PEndian.h.orig 2017-12-04 18:40:32 UTC ++++ libi2pd/I2PEndian.h +@@ -3,10 +3,10 @@ + #include <inttypes.h> + #include <string.h> + +-#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) +-#include <endian.h> +-#elif __FreeBSD__ ++#if defined(__FreeBSD__) + #include <sys/endian.h> ++#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) ++#include <endian.h> + #elif defined(__APPLE__) && defined(__MACH__) + + #include <libkern/OSByteOrder.h> diff --git a/security/i2pd/files/patch-libi2pd_Reseed.cpp b/security/i2pd/files/patch-libi2pd_Reseed.cpp new file mode 100644 index 000000000000..da2ca8e2bbc2 --- /dev/null +++ b/security/i2pd/files/patch-libi2pd_Reseed.cpp @@ -0,0 +1,11 @@ +--- libi2pd/Reseed.cpp.orig 2017-12-04 18:40:32 UTC ++++ libi2pd/Reseed.cpp +@@ -522,7 +522,7 @@ namespace data + boost::asio::io_service service; + boost::system::error_code ecode; + +- boost::asio::ssl::context ctx(service, boost::asio::ssl::context::sslv23); ++ boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23); + ctx.set_verify_mode(boost::asio::ssl::context::verify_none); + boost::asio::ssl::stream<boost::asio::ip::tcp::socket> s(service, ctx); + |