From c3608db6ddce4a9c96bdcc304299f198488d1974 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 13 Dec 2022 21:45:35 -0600 Subject: [PATCH] Fix macos xabspath. (It did not like the linux definition of O_PATH.) --- lib/portability.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/portability.h b/lib/portability.h index 16f04691..ce705dcd 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -256,6 +256,9 @@ static inline void endutxent(void) {;} // Some systems don't define O_NOFOLLOW, and it varies by architecture, so... #include +#if defined(__APPLE__) +#define O_PATH 0 +#else #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif @@ -271,6 +274,7 @@ static inline void endutxent(void) {;} #ifndef SCHED_RESET_ON_FORK #define SCHED_RESET_ON_FORK (1<<30) #endif +#endif // Glibc won't give you linux-kernel constants unless you say "no, a BUD lite" // even though linux has nothing to do with the FSF and never has. -- 2.39.2