1
0
mirror of https://github.com/golang/go synced 2024-11-26 03:57:57 -07:00

os: fix NetBSD build

os.fileStat.Sys is no longer exported.

R=golang-dev, m4dh4tt3r, r
CC=golang-dev
https://golang.org/cl/5696074
This commit is contained in:
Benny Siegert 2012-02-28 11:26:01 +11:00 committed by Rob Pike
parent 2f4e5f79a6
commit 8c7b832ad5

View File

@ -20,7 +20,7 @@ func fileInfoFromStat(st *syscall.Stat_t, name string) FileInfo {
name: basename(name),
size: int64(st.Size),
modTime: timespecToTime(st.Mtim),
Sys: st,
sys: st,
}
fs.mode = FileMode(st.Mode & 0777)
switch st.Mode & syscall.S_IFMT {