Closed maddie closed 4 years ago
Since golang.org/x/sys/unix was being updated regularly, the following error occurs when compiling under macOS:
golang.org/x/sys/unix
zsyscall_darwin.go:16:27: undefined: unix.SYS_IOCTL
This is due to golang/sys@6fcdbc0 removing all the SYS_* constants, the reason being that direct syscalls under Darwin are no longer supported.
SYS_*
Is there a fix for this?
EDIT: The temporary workaround for this problem is adding this line to the project's go.mod to use an older version of golang.org/x/sys/unix:
go.mod
replace golang.org/x/sys => golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6
But this is not a long-term solution.
Sorry, wrong project, was getting confused 😂
Since
golang.org/x/sys/unix
was being updated regularly, the following error occurs when compiling under macOS:This is due to golang/sys@6fcdbc0 removing all the
SYS_*
constants, the reason being that direct syscalls under Darwin are no longer supported.Is there a fix for this?
EDIT: The temporary workaround for this problem is adding this line to the project's
go.mod
to use an older version ofgolang.org/x/sys/unix
:But this is not a long-term solution.