diff options
author | Zhenfei Tai <ztai@google.com> | 2020-06-04 21:17:00 +0300 |
---|---|---|
committer | Zhenfei Tai <ztai@google.com> | 2020-06-05 19:59:25 +0300 |
commit | fb4fd5d43bc621e84add3499911a6f2a08694f8b (patch) | |
tree | 2a0ea7a6c1fb0360e08a60809738a405c2280c59 /redfish-core | |
parent | bc612131946d7e916022ab08c2d104848ccaa7bd (diff) | |
download | bmcweb-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.hpp | 3 |
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); |