• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/domoticz/0001-Fix-compilation-with-boost-1.66.patch
Fabrice FontaineFabrice Fontaine committed f193ba1e18714 Jan 2018
Raw file
Source viewDiff to previous
 
1
From b9481d3382d416d72f523a0442d662e49b4192d1 Mon Sep 17 00:00:00 2001
2
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3
Date: Sun, 14 Jan 2018 18:18:32 +0100
4
Subject: [PATCH] Fix compilation with boost 1.66
5
​
6
Patch fetch from one of the answer of
7
 https://github.com/domoticz/domoticz/issues/2034
8
(issue still opened, no official PR sent upstream)
9
​
10
Boost asio changed its API:
11
 - http://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/net_ts.html
12
​
13
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
14
---
15
 webserver/proxyclient.cpp | 2 +-
16
 webserver/server.cpp      | 4 ++--
17
 2 files changed, 3 insertions(+), 3 deletions(-)
18
​
19
diff --git a/webserver/proxyclient.cpp b/webserver/proxyclient.cpp
20
index 203ee619..efc9815a 100644
21
--- a/webserver/proxyclient.cpp
22
+++ b/webserver/proxyclient.cpp
23
@@ -639,7 +639,7 @@ namespace http {
24
        void CProxyManager::StartThread()
25
        {
26
            try {
27
-               boost::asio::ssl::context ctx(io_service, boost::asio::ssl::context::sslv23);
28
+               boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23);
29
                ctx.set_verify_mode(boost::asio::ssl::verify_none);
30
 
31
                proxyclient.reset(new CProxyClient(io_service, ctx, m_pWebEm));
32
diff --git a/webserver/server.cpp b/webserver/server.cpp
33
index 5255aa34..0c1af08a 100644
34
--- a/webserver/server.cpp
35
+++ b/webserver/server.cpp
36
@@ -148,7 +148,7 @@ void server::handle_accept(const boost::system::error_code& e) {
37
 ssl_server::ssl_server(const ssl_server_settings & ssl_settings, request_handler & user_request_handler) :
38
        server_base(ssl_settings, user_request_handler),
39
        settings_(ssl_settings),
40
-       context_(io_service_, ssl_settings.get_ssl_method())
41
+       context_(ssl_settings.get_ssl_method())
42
 {
43
 #ifdef DEBUG_WWW
44
    _log.Log(LOG_STATUS, "[web:%s] create ssl_server using ssl_server_settings : %s", ssl_settings.listening_port.c_str(), ssl_settings.to_string().c_str());
45
@@ -161,7 +161,7 @@ ssl_server::ssl_server(const ssl_server_settings & ssl_settings, request_handler
46
 ssl_server::ssl_server(const server_settings & settings, request_handler & user_request_handler) :
47
        server_base(settings, user_request_handler),
48
        settings_(dynamic_cast<ssl_server_settings const &>(settings)),
49
-       context_(io_service_, dynamic_cast<ssl_server_settings const &>(settings).get_ssl_method()) {
50
+       context_(dynamic_cast<ssl_server_settings const &>(settings).get_ssl_method()) {
51
 #ifdef DEBUG_WWW
52
    _log.Log(LOG_STATUS, "[web:%s] create ssl_server using server_settings : %s", settings.listening_port.c_str(), settings.to_string().c_str());
53
 #endif
54
-- 
55
2.14.1
56
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.