Update of /cvsroot/boost/boost/boost/asio/ip
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6947/ip

Modified Files:
        v6_only.hpp 
Log Message:
Allow everything to compile on platforms where IPV6_V6ONLY is not defined
(such as Linux distros with a 2.4 kernel), but make any use of ip::v6_only
fail at runtime.


Index: v6_only.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/ip/v6_only.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- v6_only.hpp 6 Jan 2007 09:10:54 -0000       1.1
+++ v6_only.hpp 13 May 2007 08:18:09 -0000      1.2
@@ -52,9 +52,13 @@
  */
 #if defined(GENERATING_DOCUMENTATION)
 typedef implementation_defined v6_only;
-#else
+#elif defined(IPV6_V6ONLY)
 typedef boost::asio::detail::socket_option::boolean<
     IPPROTO_IPV6, IPV6_V6ONLY> v6_only;
+#else
+typedef boost::asio::detail::socket_option::boolean<
+    boost::asio::detail::custom_socket_option_level,
+    boost::asio::detail::always_fail_option> v6_only;
 #endif
 
 } // namespace ip


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to