]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: fix use of DARWIN_VERS on x86 master
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 30 May 2026 06:28:38 +0000 (08:28 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 30 May 2026 06:28:38 +0000 (08:28 +0200)
There was a mistake where I left in one too many "== DARWIN_VERS" when
I purged the DARWIN_10_6 checks. Thanks to Mark Harris for spotting it.

coregrind/m_syswrap/syswrap-x86-darwin.c

index 16ba7663a8e35a62dc87c14f33970151f91c0b24..ad5b3aa416e69fc53787e6435a294c2e53012070 100644 (file)
@@ -412,7 +412,7 @@ void wqthread_hijack(Addr self, Addr kport, Addr stackaddr, Addr workitem,
       /* For whatever reason, tst->os_state.pthread appear to have a
          constant offset of 72 on 10.7, but zero on 10.6 and 10.5.  No
          idea why. */
-#     if DARWIN_VERS == DARWIN_VERS == DARWIN_10_8
+#     if DARWIN_VERS == DARWIN_10_8
       UWord magic_delta = 0x48;
 #     elif DARWIN_VERS == DARWIN_10_9 \
            || DARWIN_VERS == DARWIN_10_10 \