mirror of
https://github.com/golang/go
synced 2024-11-21 13:44:45 -07:00
doc/progs: fix windows/amd64
R=rsc CC=alex.brainman, golang-dev, vcc.163 https://golang.org/cl/4965050
This commit is contained in:
parent
eae0a48cf5
commit
2afc46f2b2
@ -15,7 +15,7 @@ type File struct {
|
||||
}
|
||||
|
||||
func newFile(fd syscall.Handle, name string) *File {
|
||||
if fd < 0 {
|
||||
if fd == ^syscall.Handle(0) {
|
||||
return nil
|
||||
}
|
||||
return &File{fd, name}
|
||||
|
@ -15,7 +15,7 @@ fi
|
||||
rm -f *.$O
|
||||
|
||||
if [ "$GOOS" = "windows" ];then
|
||||
$GC -o file.8 file_windows.go
|
||||
$GC -o file.$O file_windows.go
|
||||
else
|
||||
$GC file.go
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user