mirror of
https://github.com/golang/go
synced 2024-11-21 19:34:46 -07:00
os: Fix build for MinGW
R=rsc CC=golang-dev https://golang.org/cl/1014041
This commit is contained in:
parent
182061204c
commit
bf1c881afe
2
src/pkg/os/stat_mingw.go
Normal file → Executable file
2
src/pkg/os/stat_mingw.go
Normal file → Executable file
@ -18,7 +18,7 @@ func fileInfoFromStat(name string, fi *FileInfo, lstat, stat *syscall.Stat_t) *F
|
||||
} else {
|
||||
fi.Mode = fi.Mode | 0666
|
||||
}
|
||||
fi.Size = int64(stat.Windata.FileSizeHigh)<<32 + uint64(stat.Windata.FileSizeLow)
|
||||
fi.Size = int64(stat.Windata.FileSizeHigh)<<32 + int64(stat.Windata.FileSizeLow)
|
||||
fi.Name = string(syscall.UTF16ToString(stat.Windata.FileName[0:]))
|
||||
fi.FollowedSymlink = false
|
||||
// TODO(brainman): use CreationTime LastAccessTime LastWriteTime to prime following Dir fields
|
||||
|
Loading…
Reference in New Issue
Block a user