From e87a0426e1e8517a81ad418ae7114cb8c9235ac4 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 26 Feb 2026 11:19:36 +0100 Subject: [PATCH] Fix MSG_NOSIGNAL handling on NetBSD. In /usr/include/sys/unistd.h:62, `_POSIX_VERSION' is only `200112L', but NetBSD supports MSG_NOSIGNAL anyway. --- include/asio/detail/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asio/detail/config.hpp b/include/asio/detail/config.hpp index 3c4c8e46c9..ae8840655b 100644 --- a/include/asio/detail/config.hpp +++ b/include/asio/detail/config.hpp @@ -1406,7 +1406,7 @@ // Kernel support for MSG_NOSIGNAL. #if !defined(ASIO_HAS_MSG_NOSIGNAL) -# if defined(__linux__) +# if defined(__linux__) || defined(__NetBSD__) # define ASIO_HAS_MSG_NOSIGNAL 1 # elif defined(_POSIX_VERSION) # if (_POSIX_VERSION >= 200809L)