From: Paul Floyd Date: Sat, 13 Sep 2025 10:51:17 +0000 (+0200) Subject: Darwin syscall: fix build with fd checks X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11c0cb9765b68e2d384201cb58d7307c1acd17a1;p=thirdparty%2Fvalgrind.git Darwin syscall: fix build with fd checks Missed a couple of places where there is a fd variable used in macros and function calls. --- 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",