|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85799 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2013-09-20 08:02:33
Author: chris_kohlhoff
Date: 2013-09-20 08:02:33 EDT (Fri, 20 Sep 2013)
New Revision: 85799
URL: http://svn.boost.org/trac/boost/changeset/85799
Log:
MinGW fix.
Text files modified:
trunk/boost/asio/detail/socket_types.hpp | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
Modified: trunk/boost/asio/detail/socket_types.hpp
==============================================================================
--- trunk/boost/asio/detail/socket_types.hpp Fri Sep 20 08:00:44 2013 (r85798)
+++ trunk/boost/asio/detail/socket_types.hpp 2013-09-20 08:02:33 EDT (Fri, 20 Sep 2013) (r85799)
@@ -249,10 +249,26 @@
# define BOOST_ASIO_OS_DEF_AI_CANONNAME AI_CANONNAME
# define BOOST_ASIO_OS_DEF_AI_PASSIVE AI_PASSIVE
# define BOOST_ASIO_OS_DEF_AI_NUMERICHOST AI_NUMERICHOST
-# define BOOST_ASIO_OS_DEF_AI_NUMERICSERV AI_NUMERICSERV
-# define BOOST_ASIO_OS_DEF_AI_V4MAPPED AI_V4MAPPED
-# define BOOST_ASIO_OS_DEF_AI_ALL AI_ALL
-# define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG AI_ADDRCONFIG
+# if defined(AI_NUMERICSERV)
+# define BOOST_ASIO_OS_DEF_AI_NUMERICSERV AI_NUMERICSERV
+# else
+# define BOOST_ASIO_OS_DEF_AI_NUMERICSERV 0
+# endif
+# if defined(AI_V4MAPPED)
+# define BOOST_ASIO_OS_DEF_AI_V4MAPPED AI_V4MAPPED
+# else
+# define BOOST_ASIO_OS_DEF_AI_V4MAPPED 0
+# endif
+# if defined(AI_ALL)
+# define BOOST_ASIO_OS_DEF_AI_ALL AI_ALL
+# else
+# define BOOST_ASIO_OS_DEF_AI_ALL 0
+# endif
+# if defined(AI_ADDRCONFIG)
+# define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG AI_ADDRCONFIG
+# else
+# define BOOST_ASIO_OS_DEF_AI_ADDRCONFIG 0
+# endif
# if defined (_WIN32_WINNT)
const int max_iov_len = 64;
# else
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