Skip to content

Commit fab04f2

Browse files
committed
os: explain the spawn linkname import
1 parent 3830b8a commit fab04f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/os/exec_posix_spawn_darwin.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package os
44

55
import (
66
"syscall"
7-
_ "unsafe"
7+
_ "unsafe" // Required by go:linkname. See https://pkg.go.dev/cmd/compile#hdr-Compiler_Directives.
88
)
99

1010
var spawnDevNull = [...]byte{'/', 'd', 'e', 'v', '/', 'n', 'u', 'l', 'l', 0}

0 commit comments

Comments
 (0)