1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:44:45 -07:00

os: Fix build for MinGW

R=rsc
CC=golang-dev
https://golang.org/cl/1014041
This commit is contained in:
Evan Shaw 2010-04-26 22:50:47 -07:00 committed by Russ Cox
parent 182061204c
commit bf1c881afe

2
src/pkg/os/stat_mingw.go Normal file → Executable file
View File

@ -18,7 +18,7 @@ func fileInfoFromStat(name string, fi *FileInfo, lstat, stat *syscall.Stat_t) *F
} else { } else {
fi.Mode = fi.Mode | 0666 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.Name = string(syscall.UTF16ToString(stat.Windata.FileName[0:]))
fi.FollowedSymlink = false fi.FollowedSymlink = false
// TODO(brainman): use CreationTime LastAccessTime LastWriteTime to prime following Dir fields // TODO(brainman): use CreationTime LastAccessTime LastWriteTime to prime following Dir fields