diff --git a/cmake/introspection.cmake b/cmake/introspection.cmake index d2257633974..b87f3e59d6d 100644 --- a/cmake/introspection.cmake +++ b/cmake/introspection.cmake @@ -8,7 +8,9 @@ include(CheckCXXSymbolExists) check_cxx_symbol_exists(O_CLOEXEC "fcntl.h" HAVE_O_CLOEXEC) check_cxx_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC) check_cxx_symbol_exists(fork "unistd.h" HAVE_DECL_FORK) -check_cxx_symbol_exists(pipe2 "unistd.h" HAVE_DECL_PIPE2) +if (NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") + check_cxx_symbol_exists(pipe2 "unistd.h" HAVE_DECL_PIPE2) +endif() check_cxx_symbol_exists(setsid "unistd.h" HAVE_DECL_SETSID) if(NOT WIN32) diff --git a/doc/release-notes.md b/doc/release-notes.md index a69e29b9691..aade145e1d3 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -88,6 +88,7 @@ Notable changes ### Build - #35769 depends, zeromq: Apply upstream patch +- #36218 build: avoid pipe2 on Darwin (for now) ### Doc @@ -106,6 +107,7 @@ Thanks to everyone who directly contributed to this release: - ajtowns - cyb3ralbert - darosior +- fanquake - fjahr - Greg Sanders - hebasto