diff options
Diffstat (limited to 'libs/asio/test/generic/raw_protocol.cpp')
-rw-r--r-- | libs/asio/test/generic/raw_protocol.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/asio/test/generic/raw_protocol.cpp b/libs/asio/test/generic/raw_protocol.cpp index b3afbc9d3..aff174978 100644 --- a/libs/asio/test/generic/raw_protocol.cpp +++ b/libs/asio/test/generic/raw_protocol.cpp @@ -2,7 +2,7 @@ // generic/raw_protocol.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -73,7 +73,8 @@ void test() rp::socket socket2(ios, rp(af_inet, ipproto_icmp)); rp::socket socket3(ios, rp::endpoint()); #if !defined(BOOST_ASIO_WINDOWS_RUNTIME) - int native_socket1 = ::socket(af_inet, sock_raw, 0); + rp::socket::native_handle_type native_socket1 + = ::socket(af_inet, sock_raw, 0); rp::socket socket4(ios, rp(af_inet, ipproto_icmp), native_socket1); #endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME) @@ -105,9 +106,11 @@ void test() socket1.open(rp(af_inet, ipproto_icmp), ec); #if !defined(BOOST_ASIO_WINDOWS_RUNTIME) - int native_socket2 = ::socket(af_inet, sock_raw, 0); + rp::socket::native_handle_type native_socket2 + = ::socket(af_inet, sock_raw, 0); socket1.assign(rp(af_inet, ipproto_icmp), native_socket2); - int native_socket3 = ::socket(af_inet, sock_raw, 0); + rp::socket::native_handle_type native_socket3 + = ::socket(af_inet, sock_raw, 0); socket1.assign(rp(af_inet, ipproto_icmp), native_socket3, ec); #endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME) |