mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
Direct syscalls using syscall.Syscall(SYS_*, ...) should no longer be used on darwin, see [1]. Instead, use the madvise syscall wrapper provided by the golang.org/x/sys/unix package for all unix platforms. This implement the same functionality. [1] https://golang.org/doc/go1.12#darwin As suggested by @ptabor in https://github.com/etcd-io/etcd/pull/12316#issuecomment-698193671
3 lines
207 B
Plaintext
3 lines
207 B
Plaintext
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d h1:L/IKR6COd7ubZrs2oTnTi73IhgqJ71c9s80WsQnh0Es=
|
|
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|