Skip to content

Commit

Permalink
Fixes other compilation errors with recent Boost version.
Browse files Browse the repository at this point in the history
Boost socket native() method was deprecated for a long time and is
replaced by native_handle() ones. Other part of the code is correctly
using the native_handle() so it just a miss for this one."
  • Loading branch information
s-vincent committed Apr 15, 2018
1 parent 573a2d3 commit 5337595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/freelan/src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ namespace freelan
#ifdef LINUX
if (!m_configuration.fscp.listen_on_device.empty())
{
const auto socket_fd = m_fscp_server->get_socket().native();
const auto socket_fd = m_fscp_server->get_socket().native_handle();
const std::string device_name = m_configuration.fscp.listen_on_device;

if (::setsockopt(socket_fd, SOL_SOCKET, SO_BINDTODEVICE, device_name.c_str(), device_name.size()) == 0)
Expand Down

0 comments on commit 5337595

Please sign in to comment.