mirror of
https://github.com/golang/go
synced 2024-11-20 02:54:39 -07:00
syscall: make windows Errno implement net.Error (fix build)
TBR=brainman CC=golang-dev https://golang.org/cl/5371086
This commit is contained in:
parent
f19aef5393
commit
6677d2954e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user