Skip to content

Commit

Permalink
syscall: fix freebsd 64-bit test
Browse files Browse the repository at this point in the history
64 bits is 8 bytes. Duh.

Change-Id: I991b359df6241889bdef13152f551af9db6e14c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/181557
Run-TryBot: Keith Randall <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
  • Loading branch information
randall77 committed Jun 10, 2019
1 parent 350f71f commit 2d75c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syscall/syscall_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func Fstatfs(fd int, st *Statfs_t) (err error) {

func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
if supportsABI(_ino64First) {
if unsafe.Sizeof(*basep) == 64 {
if unsafe.Sizeof(*basep) == 8 {
return getdirentries_freebsd12(fd, buf, (*uint64)(unsafe.Pointer(basep)))
}
// The freebsd12 syscall needs a 64-bit base. On 32-bit machines
Expand Down

0 comments on commit 2d75c33

Please sign in to comment.