From 38e3b0cfa9948726c9e2a1b25b715d18feba69e8 Mon Sep 17 00:00:00 2001 From: sohailshk <122166523+sohailshk@users.noreply.github.com> Date: Tue, 24 Nov 2026 23:43:09 +0530 Subject: [PATCH] Global (macOS): disables pipe2 detection to fix a crash with the macOS 27 SDK With the macOS 27.0 SDK, pipe2 is weak-linked when the deployment target is 26.0, so it is NULL on macOS 26 and every process spawn crashed. Skip the pipe2 check on Apple platforms so the existing pipe() + fcntl() path is used. --- CHANGELOG.md | 1 + CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab5db85b2f..e1eb94eb1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Bugfixes: * Fixed out-of-bounds reads when parsing malformed CTA-861 EDID extensions. (General) * Fixed the init system executable path being truncated on platforms where POSIX `basename()` modifies its argument. (InitSystem, Linux) * Fixed undefined behavior from passing negative `char` values to ctype functions. (General) +* Fixed a crash on macOS 26 when fastfetch is built with the macOS 27 SDK, where `pipe2` is weak-linked and NULL at runtime. (Global, macOS) Logos: * Updated the CuerdOS logo and colors (#2712) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee8ca3f832..1c1602b65e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1500,7 +1500,7 @@ if(WIN32) endif() endif() endif() -if(NOT WIN32) +if(NOT WIN32 AND NOT APPLE) check_function_exists(pipe2 HAVE_PIPE2) endif() check_function_exists(memrchr HAVE_MEMRCHR)