From 8a2b9beb96c8080d1b82fc359775b5186b30e1ea Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Fri, 26 Dec 2025 19:08:26 +0300 Subject: [PATCH] Enable Boost.ASIO on Cygwin32. Boost.ASIO has issues compiling only on Cygwin64 (due to it being an LP64 target), but it should work on Cygwin32. --- doc/changelog.qbk | 1 + include/boost/log/detail/config.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/changelog.qbk b/doc/changelog.qbk index c6158b42c3..137da0c1f2 100644 --- a/doc/changelog.qbk +++ b/doc/changelog.qbk @@ -12,6 +12,7 @@ [heading 2.34, Boost 1.91] * Enabled building interprocess communication support on Cygwin by default. +* Enabled building Boost.ASIO support on Cygwin32 (but not Cygwin64). [heading 2.33, Boost 1.90] diff --git a/include/boost/log/detail/config.hpp b/include/boost/log/detail/config.hpp index 4f188ef13e..59c97e62a9 100644 --- a/include/boost/log/detail/config.hpp +++ b/include/boost/log/detail/config.hpp @@ -103,8 +103,8 @@ # define BOOST_LOG_NO_CXX11_CODECVT_FACETS #endif -#if defined(__CYGWIN__) && !defined(BOOST_LOG_WITHOUT_ASIO) - // Boost.ASIO is broken on Cygwin +#if defined(__CYGWIN__) && defined(__LP64__) && !defined(BOOST_LOG_WITHOUT_ASIO) + // Boost.ASIO is broken on Cygwin64 # define BOOST_LOG_WITHOUT_ASIO #endif