From a8e83d2febe28a79e2906a9249ab2d79e0523c2a Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 4 Apr 2019 14:08:06 -0700 Subject: [PATCH] syscall: don't use INODE64 for fdopendir on darwin/386 The INODE64 variant only exists on 64-bit. Fixes #31262 Change-Id: I528277c9b3312fdb15463ccbea0d537ff300f4ae Reviewed-on: https://go-review.googlesource.com/c/go/+/170837 Run-TryBot: Keith Randall Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/syscall/syscall_darwin_386.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscall/syscall_darwin_386.go b/src/syscall/syscall_darwin_386.go index e4908d1f9c..d39c65505c 100644 --- a/src/syscall/syscall_darwin_386.go +++ b/src/syscall/syscall_darwin_386.go @@ -70,7 +70,7 @@ func fdopendir(fd int) (dir uintptr, err error) { func libc_fdopendir_trampoline() //go:linkname libc_fdopendir libc_fdopendir -//go:cgo_import_dynamic libc_fdopendir fdopendir$INODE64 "/usr/lib/libSystem.B.dylib" +//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib" // Implemented in the runtime package (runtime/sys_darwin_32.go) func syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) -- 2.50.0