From 11c0cb9765b68e2d384201cb58d7307c1acd17a1 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sat, 13 Sep 2025 12:51:17 +0200 Subject: [PATCH] Darwin syscall: fix build with fd checks Missed a couple of places where there is a fd variable used in macros and function calls. --- coregrind/m_syswrap/syswrap-darwin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c index 761965d61..d6df8b996 100644 --- a/coregrind/m_syswrap/syswrap-darwin.c +++ b/coregrind/m_syswrap/syswrap-darwin.c @@ -9858,6 +9858,7 @@ POST(getattrlistbulk) PRE(faccessat) { + Int fd = ARG1; PRINT("faccessat(fd:%d, path:%#lx(%s), amode:%#lx, flag:%#lx)", fd, ARG2, ARG2 ? (HChar*)ARG2 : "null", ARG3, ARG4); PRE_REG_READ4(int, "faccessat", @@ -9868,6 +9869,7 @@ PRE(faccessat) PRE(fstatat64) { + Int fd = ARG1; PRINT("fstatat64(fd:%d, path:%#lx(%s), ub:%#lx, flag:%#lx)", fd, ARG2, ARG2 ? (HChar*)ARG2 : "null", ARG3, ARG4); PRE_REG_READ4(int, "fstatat64", -- 2.47.3