From: Mark Harris Date: Wed, 20 May 2026 19:21:34 +0000 (-0700) Subject: Fix macOS 10.8.5 undeclared identifier F_READBOOTSTRAP/F_WRITEBOOTSTRAP X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aabca60587454018791084df73d6593b6d43288b;p=thirdparty%2Fvalgrind.git Fix macOS 10.8.5 undeclared identifier F_READBOOTSTRAP/F_WRITEBOOTSTRAP Apparently these macros were present in OS X 10.8 but were removed at some point before OS X 10.8.5. --- diff --git a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c index f8e5d2a24..1468e5091 100644 --- a/coregrind/m_syswrap/syswrap-darwin.c +++ b/coregrind/m_syswrap/syswrap-darwin.c @@ -1772,7 +1772,7 @@ static const HChar *name_for_fcntl(UWord cmd) { F(F_PREALLOCATE); F(F_SETSIZE); F(F_RDADVISE); -# if DARWIN_VERS < DARWIN_10_9 +# if DARWIN_VERS < DARWIN_10_9 && defined(F_READBOOTSTRAP) F(F_READBOOTSTRAP); F(F_WRITEBOOTSTRAP); # endif @@ -1902,7 +1902,7 @@ PRE(fcntl) } break; -# if DARWIN_VERS < DARWIN_10_9 +# if DARWIN_VERS < DARWIN_10_9 && defined(F_READBOOTSTRAP) // struct fbootstraptransfer case VKI_F_READBOOTSTRAP: case VKI_F_WRITEBOOTSTRAP: