From acff0e9b2525f6539b2bd82196b3bbb1fd2df2fc Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Tue, 4 Nov 2025 23:46:54 +1100 Subject: [PATCH] Add missing preprocessor check for ASIO_DISABLE_TIMERFD. --- include/boost/asio/detail/config.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/boost/asio/detail/config.hpp b/include/boost/asio/detail/config.hpp index b79b2b2a..8c9ca598 100644 --- a/include/boost/asio/detail/config.hpp +++ b/include/boost/asio/detail/config.hpp @@ -825,11 +825,13 @@ # endif // !defined(BOOST_ASIO_DISABLE_EVENTFD) # endif // !defined(BOOST_ASIO_HAS_EVENTFD) # if !defined(BOOST_ASIO_HAS_TIMERFD) -# if defined(BOOST_ASIO_HAS_EPOLL) -# if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) -# define BOOST_ASIO_HAS_TIMERFD 1 -# endif // (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) -# endif // defined(BOOST_ASIO_HAS_EPOLL) +# if !defined(BOOST_ASIO_DISABLE_TIMERFD) +# if defined(BOOST_ASIO_HAS_EPOLL) +# if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) +# define BOOST_ASIO_HAS_TIMERFD 1 +# endif // (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) +# endif // defined(BOOST_ASIO_HAS_EPOLL) +# endif // !defined(BOOST_ASIO_DISABLE_TIMERFD) # endif // !defined(BOOST_ASIO_HAS_TIMERFD) # if defined(BOOST_ASIO_HAS_IO_URING) # if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)