Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58793 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-01-07 17:18:17


Author: chris_kohlhoff
Date: 2010-01-07 17:18:16 EST (Thu, 07 Jan 2010)
New Revision: 58793
URL: http://svn.boost.org/trac/boost/changeset/58793

Log:
Support platforms that don't define INET6_ADDRSTRLEN. Refs #3743.

Text files modified:
   trunk/boost/asio/detail/socket_types.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/asio/detail/socket_types.hpp
==============================================================================
--- trunk/boost/asio/detail/socket_types.hpp (original)
+++ trunk/boost/asio/detail/socket_types.hpp 2010-01-07 17:18:16 EST (Thu, 07 Jan 2010)
@@ -163,7 +163,11 @@
 const int invalid_socket = -1;
 const int socket_error_retval = -1;
 const int max_addr_v4_str_len = INET_ADDRSTRLEN;
+#if defined(INET6_ADDRSTRLEN)
 const int max_addr_v6_str_len = INET6_ADDRSTRLEN + 1 + IF_NAMESIZE;
+#else // defined(INET6_ADDRSTRLEN)
+const int max_addr_v6_str_len = 256;
+#endif // defined(INET6_ADDRSTRLEN)
 typedef sockaddr socket_addr_type;
 typedef in_addr in4_addr_type;
 # if defined(__hpux)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk