From 67c290158cdb12b755c17b404f0eb63bc40eac73 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 24 Dec 2025 10:04:28 -0500 Subject: Fix undefined PSEMNAMLEN on Darwin --- src/lib/core/include/sem.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lib/core/include/sem.h b/src/lib/core/include/sem.h index 583770a..b8f9a39 100644 --- a/src/lib/core/include/sem.h +++ b/src/lib/core/include/sem.h @@ -6,6 +6,11 @@ #include "core.h" #include +#if defined(STASIS_OS_DARWIN) +// Darwin's sem_open() limits the path length to PSEMNAMLEN +// even though it isn't used directly. +#include // PSEMNAMLEN +#endif struct Semaphore { sem_t *sem; -- cgit