From 4d873483be9efe35302dde6ef22f029f383de699 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 21 Jun 2019 20:40:22 +0200 Subject: [PATCH] unix: add missing import in readdirent_getdirentries.go CL 182321 missed this and the trybots didn't catch it because they neither test darwin nor dragonfly. Change-Id: I6093805e702d528dae9035a5acf827099e0c2eaa Reviewed-on: https://go-review.googlesource.com/c/sys/+/183222 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- unix/readdirent_getdirentries.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/readdirent_getdirentries.go b/unix/readdirent_getdirentries.go index e5bf23d3..161e95a7 100644 --- a/unix/readdirent_getdirentries.go +++ b/unix/readdirent_getdirentries.go @@ -6,6 +6,8 @@ package unix +import "unsafe" + // ReadDirent reads directory entries from fd and writes them into buf. func ReadDirent(fd int, buf []byte) (n int, err error) { // Final argument is (basep *uintptr) and the syscall doesn't take nil.