From ded9a069f49d8a5ba9f83d024605dc212cdb8085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 22 Nov 2025 21:16:25 +0100 Subject: [PATCH] Fix cygwin _POSIX_C_SOURCE check --- include/boost/interprocess/detail/workaround.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/interprocess/detail/workaround.hpp b/include/boost/interprocess/detail/workaround.hpp index ca812e0..2d4c70a 100644 --- a/include/boost/interprocess/detail/workaround.hpp +++ b/include/boost/interprocess/detail/workaround.hpp @@ -34,7 +34,7 @@ #else #include - #if defined (__CYGWIN__) && (!defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE < 200112L)) + #if defined (__CYGWIN__) && (!defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 200112L)) #error "Error: Compiling on Cygwin without POSIX is not supported. Please define _XOPEN_SOURCE >= 600 or _POSIX_C_SOURCE >= 200112 when compiling" #endif