Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2007-10-09 17:47:41


Author: chris_kohlhoff
Date: 2007-10-09 17:47:40 EDT (Tue, 09 Oct 2007)
New Revision: 39864
URL: http://svn.boost.org/trac/boost/changeset/39864

Log:
HP-UX with aCC uses a variant of select() that takes int* arguments rather
than fd_set*.

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

Modified: trunk/boost/asio/detail/socket_ops.hpp
==============================================================================
--- trunk/boost/asio/detail/socket_ops.hpp (original)
+++ trunk/boost/asio/detail/socket_ops.hpp 2007-10-09 17:47:40 EDT (Tue, 09 Oct 2007)
@@ -542,8 +542,15 @@
       && timeout->tv_usec > 0 && timeout->tv_usec < 1000)
     timeout->tv_usec = 1000;
 #endif // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+
+#if defined(__hpux) && defined(__HP_aCC) && !defined(_XOPEN_SOURCE_EXTENDED)
+ return error_wrapper(::select(nfds,
+ reinterpret_cast<int*>(readfds), reinterpret_cast<int*>(writefds),
+ reinterpret_cast<int*>(exceptfds), timeout), ec);
+#else
   return error_wrapper(::select(nfds, readfds,
         writefds, exceptfds, timeout), ec);
+#endif
 }
 
 inline int poll_read(socket_type s, boost::system::error_code& ec)


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