Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-07-08 08:30:49


Author: chris_kohlhoff
Date: 2008-07-08 08:30:49 EDT (Tue, 08 Jul 2008)
New Revision: 47217
URL: http://svn.boost.org/trac/boost/changeset/47217

Log:
POSIX platforms are not required to define IOV_MAX, so if it's not
available default to the stipulated minimum of 16.

Text files modified:
   trunk/boost/asio/detail/socket_types.hpp | 5 +++++
   1 files changed, 5 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 2008-07-08 08:30:49 EDT (Tue, 08 Jul 2008)
@@ -188,7 +188,12 @@
 const int message_peek = MSG_PEEK;
 const int message_out_of_band = MSG_OOB;
 const int message_do_not_route = MSG_DONTROUTE;
+# if defined(IOV_MAX)
 const int max_iov_len = IOV_MAX;
+# else
+// POSIX platforms are not required to define IOV_MAX.
+const int max_iov_len = 16;
+# endif
 #endif
 const int custom_socket_option_level = 0xA5100000;
 const int enable_connection_aborted_option = 1;


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