Commit 2afc46f2 authored by Jaroslavas Počepko's avatar Jaroslavas Počepko Committed by Russ Cox

doc/progs: fix windows/amd64

R=rsc
CC=alex.brainman, golang-dev, vcc.163
https://golang.org/cl/4965050
parent eae0a48c
...@@ -15,7 +15,7 @@ type File struct { ...@@ -15,7 +15,7 @@ type File struct {
} }
func newFile(fd syscall.Handle, name string) *File { func newFile(fd syscall.Handle, name string) *File {
if fd < 0 { if fd == ^syscall.Handle(0) {
return nil return nil
} }
return &File{fd, name} return &File{fd, name}
......
...@@ -15,7 +15,7 @@ fi ...@@ -15,7 +15,7 @@ fi
rm -f *.$O rm -f *.$O
if [ "$GOOS" = "windows" ];then if [ "$GOOS" = "windows" ];then
$GC -o file.8 file_windows.go $GC -o file.$O file_windows.go
else else
$GC file.go $GC file.go
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment