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)