diff options
Diffstat (limited to 'libs/asio/test/ip/udp.cpp')
-rw-r--r-- | libs/asio/test/ip/udp.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/asio/test/ip/udp.cpp b/libs/asio/test/ip/udp.cpp index 428ed0ee0..445ef87a6 100644 --- a/libs/asio/test/ip/udp.cpp +++ b/libs/asio/test/ip/udp.cpp @@ -2,7 +2,7 @@ // udp.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) @@ -80,7 +80,8 @@ void test() ip::udp::socket socket4(ios, ip::udp::endpoint(ip::udp::v4(), 0)); ip::udp::socket socket5(ios, ip::udp::endpoint(ip::udp::v6(), 0)); #if !defined(BOOST_ASIO_WINDOWS_RUNTIME) - int native_socket1 = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); + ip::udp::socket::native_handle_type native_socket1 + = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); ip::udp::socket socket6(ios, ip::udp::v4(), native_socket1); #endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME) @@ -116,9 +117,11 @@ void test() socket1.open(ip::udp::v6(), ec); #if !defined(BOOST_ASIO_WINDOWS_RUNTIME) - int native_socket2 = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); + ip::udp::socket::native_handle_type native_socket2 + = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); socket1.assign(ip::udp::v4(), native_socket2); - int native_socket3 = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); + ip::udp::socket::native_handle_type native_socket3 + = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); socket1.assign(ip::udp::v4(), native_socket3, ec); #endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME) |