From 5bd839075c8f7f72c875e3e9ec304418cc2559a3 Mon Sep 17 00:00:00 2001 From: Yelninei Date: Thu, 6 Aug 2026 14:10:33 +0000 Subject: [PATCH] CMake (Hurd): Define O_PATH to O_NORW. This is a noop because O_RW is 0 but O_NORW is the correct constant to open a file without read/write permissions. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd0df0d18..3770a844c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1555,7 +1555,7 @@ elseif(Haiku) target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE) elseif(GNU) # On Hurd PATH_MAX is not defined. Set an arbitrary limit as workaround. - target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE PATH_MAX=4096 O_PATH=0) + target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE PATH_MAX=4096 O_PATH=O_NORW) endif() if(APPLE)