mirror of
https://github.com/golang/go
synced 2024-11-18 15:44:41 -07:00
syscall: fix build on dragonfly
This change fixes the broken build caused by CL 23780. Change-Id: I142cf8a1af033d036d57ac56e9e21ea925d922d4 Reviewed-on: https://go-review.googlesource.com/29490 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
35d22afb4b
commit
6072e4d710
@ -57,7 +57,7 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func direntIno(buf []byte) (uint64, bool) {
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
}
|
}
|
||||||
|
|
||||||
func direntReclen(buf []byte) (uint64, bool) {
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
@ -65,7 +65,7 @@ func direntReclen(buf []byte) (uint64, bool) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return 0, false
|
return 0, false
|
||||||
}
|
}
|
||||||
return (16 + namlen + 1 + 7) & ^7, true
|
return (16 + namlen + 1 + 7) & ^uint64(7), true
|
||||||
}
|
}
|
||||||
|
|
||||||
func direntNamlen(buf []byte) (uint64, bool) {
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user