Commit 73ab594c authored by Alex Brainman's avatar Alex Brainman

syscall: remove WSAEMSGSIZE

CL 92475 added WSAEMSGSIZE const to syscall package. But there
is already copy of WSAEMSGSIZE in internal/syscall/windows.
So delete syscall.WSAEMSGSIZE

Change-Id: I0b81fa5dcf846887a0cb27d8bbd7e250860627b5
Reviewed-on: https://go-review.googlesource.com/106956
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 9137edc9
......@@ -226,7 +226,7 @@ func (s *ioSrv) ExecIO(o *operation, submit func(o *operation) error) (int, erro
if o.errno != 0 {
err = syscall.Errno(o.errno)
// More data available. Return back the size of received data.
if err == syscall.ERROR_MORE_DATA || err == syscall.WSAEMSGSIZE {
if err == syscall.ERROR_MORE_DATA || err == windows.WSAEMSGSIZE {
return int(o.qty), err
}
return 0, err
......
......@@ -27,7 +27,6 @@ const (
ERROR_NOT_FOUND Errno = 1168
ERROR_PRIVILEGE_NOT_HELD Errno = 1314
WSAEACCES Errno = 10013
WSAEMSGSIZE Errno = 10040
WSAECONNABORTED Errno = 10053
WSAECONNRESET Errno = 10054
)
......
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