From 9cb830b23eaf26f5db69302da2b1ba1d89c9548e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 22 Aug 2024 15:07:11 -0700 Subject: [PATCH] unix: add missing import to syscall_hurd.go CL 471119 added a reference to the unsafe package, but didn't add the import. Change-Id: Ibb8097df0444d8e83ba08e4ca2b5df98844fccf4 Reviewed-on: https://go-review.googlesource.com/c/sys/+/607976 Reviewed-by: Tobias Klauser Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Commit-Queue: Ian Lance Taylor Reviewed-by: Ian Lance Taylor --- unix/syscall_hurd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/syscall_hurd.go b/unix/syscall_hurd.go index ba46651f8..a6a2d2fc2 100644 --- a/unix/syscall_hurd.go +++ b/unix/syscall_hurd.go @@ -11,6 +11,7 @@ package unix int ioctl(int, unsigned long int, uintptr_t); */ import "C" +import "unsafe" func ioctl(fd int, req uint, arg uintptr) (err error) { r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))