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.
This commit is contained in:
Yelninei
2026-08-06 14:10:33 +00:00
committed by Carter Li
parent 39b3dc001a
commit 8686820c1a
+1 -1
View File
@@ -1569,7 +1569,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)