summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorZhenfei Tai <ztai@google.com>2020-06-04 21:17:00 +0300
committerZhenfei Tai <ztai@google.com>2020-06-05 19:59:25 +0300
commitfb4fd5d43bc621e84add3499911a6f2a08694f8b (patch)
tree2a0ea7a6c1fb0360e08a60809738a405c2280c59 /redfish-core
parentbc612131946d7e916022ab08c2d104848ccaa7bd (diff)
downloadbmcweb-fb4fd5d43bc621e84add3499911a6f2a08694f8b.tar.xz
bmcweb: Replace deprecated boost::asio::io_service
bmcweb will not build when boost library is version 1.71.0. Also fix code format. In CMakeLists.txt 271 if ("${Boost_VERSION}" STREQUAL "107100") 272 add_definitions (-DBOOST_ASIO_NO_DEPRECATED) 273 endif () Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: I4ebbf3cfcfd767ea016b4efd19704d25b845f86c
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/include/event_service_manager.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/redfish-core/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp
index e94bbedce7..faf093dd4b 100644
--- a/redfish-core/include/event_service_manager.hpp
+++ b/redfish-core/include/event_service_manager.hpp
@@ -21,6 +21,7 @@
#include <sys/inotify.h>
+#include <boost/asio/io_context.hpp>
#include <boost/container/flat_map.hpp>
#include <cstdlib>
#include <ctime>
@@ -983,7 +984,7 @@ class EventServiceManager
});
}
- static int startEventLogMonitor(boost::asio::io_service& ioc)
+ static int startEventLogMonitor(boost::asio::io_context& ioc)
{
inotifyConn =
std::make_shared<boost::asio::posix::stream_descriptor>(ioc);