From 81d4e9dc473e5e8c933f2aaeba2a3d81efb9aed2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 3 Apr 2019 09:41:39 +0200 Subject: [PATCH] unix: don't generate raw syscall wrapper for ClockGettime on darwin Follow-up for CL 170299 CL 170297 erroneously introduced a raw syscall wrapper for ClockGettime on darwin. Make sure it isn't generated by mistake again. Change-Id: Ie9ecdc950e5ab6cc85937008cd140847cffac42f Reviewed-on: https://go-review.googlesource.com/c/sys/+/170301 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- unix/mksyscall.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unix/mksyscall.go b/unix/mksyscall.go index bed93d48..e4af9424 100644 --- a/unix/mksyscall.go +++ b/unix/mksyscall.go @@ -153,6 +153,11 @@ func main() { } funct, inps, outps, sysname := f[2], f[3], f[4], f[5] + // ClockGettime doesn't have a syscall number on Darwin, only generate libc wrappers. + if goos == "darwin" && !libc && funct == "ClockGettime" { + continue + } + // Split argument lists on comma. in := parseParamList(inps) out := parseParamList(outps)