]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix macOS 10.8.5 undeclared identifier F_READBOOTSTRAP/F_WRITEBOOTSTRAP
authorMark Harris <mark.hsj@gmail.com>
Wed, 20 May 2026 19:21:34 +0000 (12:21 -0700)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 29 May 2026 19:31:26 +0000 (21:31 +0200)
Apparently these macros were present in OS X 10.8 but were removed
at some point before OS X 10.8.5.

coregrind/m_syswrap/syswrap-darwin.c

index f8e5d2a246ebadba9245808982743b0d709f36c5..1468e5091c8f50b3e773403620324d43d17d3e73 100644 (file)
@@ -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: