Commit 6677d295 authored by Russ Cox's avatar Russ Cox

syscall: make windows Errno implement net.Error (fix build)

TBR=brainman
CC=golang-dev
https://golang.org/cl/5371086
parent f19aef53
......@@ -15,6 +15,14 @@ func (e Errno) Error() string {
return errstr(e)
}
func (e Errno) Temporary() bool {
return e == EINTR || e == EMFILE || e.Timeout()
}
func (e Errno) Timeout() bool {
return e == EAGAIN || e == EWOULDBLOCK || e == ETIMEDOUT
}
// DLLError describes reasons for DLL load failures.
type DLLError struct {
Err error
......
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