Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58629 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-01-02 05:20:13


Author: chris_kohlhoff
Date: 2010-01-02 05:20:12 EST (Sat, 02 Jan 2010)
New Revision: 58629
URL: http://svn.boost.org/trac/boost/changeset/58629

Log:
Ensure that kqueue support is enabled for BSD platforms. Refs #3626.

Text files modified:
   trunk/boost/asio/detail/kqueue_reactor_fwd.hpp | 10 +++++++---
   1 files changed, 7 insertions(+), 3 deletions(-)

Modified: trunk/boost/asio/detail/kqueue_reactor_fwd.hpp
==============================================================================
--- trunk/boost/asio/detail/kqueue_reactor_fwd.hpp (original)
+++ trunk/boost/asio/detail/kqueue_reactor_fwd.hpp 2010-01-02 05:20:12 EST (Sat, 02 Jan 2010)
@@ -19,9 +19,11 @@
 #include <boost/asio/detail/push_options.hpp>
 
 #if !defined(BOOST_ASIO_DISABLE_KQUEUE)
-#if defined(__MACH__) && defined(__APPLE__)
 
-// Define this to indicate that epoll is supported on the target platform.
+#if (defined(__MACH__) && defined(__APPLE__)) \
+ || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+
+// Define this to indicate that kqueue is supported on the target platform.
 #define BOOST_ASIO_HAS_KQUEUE 1
 
 namespace boost {
@@ -35,7 +37,9 @@
 } // namespace asio
 } // namespace boost
 
-#endif // defined(__MACH__) && defined(__APPLE__)
+#endif // (defined(__MACH__) && defined(__APPLE__))
+ // || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+
 #endif // !defined(BOOST_ASIO_DISABLE_KQUEUE)
 
 #include <boost/asio/detail/pop_options.hpp>


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