Hi.
I am trying to use cpp-netlib ([1]) with the current Cygwin Boost
package. I have encountered a few compilation problems which seem to be
fixed by the attached patches.
[1] <http://cpp-netlib.github.com/>
--
VZ
--- asio/detail/buffer_sequence_adapter.hpp.vz 2011-10-03 09:18:30.500000000 +0200
+++ asio/detail/buffer_sequence_adapter.hpp 2011-10-03 09:17:38.125000000 +0200
@@ -26,7 +26,7 @@ namespace detail {
class buffer_sequence_adapter_base
{
protected:
-#if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+#if defined(BOOST_WINDOWS)
typedef WSABUF native_buffer_type;
static void init_native_buffer(WSABUF& buf,
@@ -42,7 +42,7 @@ protected:
buf.buf = const_cast<char*>(boost::asio::buffer_cast<const char*>(buffer));
buf.len = boost::asio::buffer_size(buffer);
}
-#else // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+#else // defined(BOOST_WINDOWS)
typedef iovec native_buffer_type;
static void init_iov_base(void*& base, void* addr)
@@ -70,7 +70,7 @@ protected:
boost::asio::buffer_cast<const void*>(buffer)));
iov.iov_len = boost::asio::buffer_size(buffer);
}
-#endif // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+#endif // defined(BOOST_WINDOWS)
};
// Helper class to translate buffers into the native buffer representation.
--- thread/future.hpp 2010-05-17 04:35:12.001000000 +0200
+++ thread/future.hpp 2011-10-03 07:07:01.157104400 +0200
@@ -9,6 +9,8 @@
#include <stdexcept>
#include <boost/thread/detail/move.hpp>
#include <boost/thread/thread_time.hpp>
+#include <boost/thread/mutex.hpp>
+#include <boost/thread/condition_variable.hpp>
#include <boost/exception_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
--- asio/detail/select_interrupter.hpp.vz 2011-10-03 09:08:42.046875000 +0200
+++ asio/detail/select_interrupter.hpp 2011-10-03 09:13:26.343750000 +0200
@@ -21,7 +21,7 @@
#include <boost/config.hpp>
#include <boost/asio/detail/pop_options.hpp>
-#if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+#if defined(BOOST_WINDOWS)
# include <boost/asio/detail/socket_select_interrupter.hpp>
#else
# include <boost/asio/detail/eventfd_select_interrupter.hpp>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple