From: Alex Brainman Date: Sat, 14 Apr 2018 02:48:55 +0000 (+1000) Subject: syscall: remove WSAEMSGSIZE X-Git-Tag: go1.11beta1~829 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73ab594c52a63d0eb385167aa58f7bca07e2a422;p=gostls13.git 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 Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/internal/poll/fd_windows.go b/src/internal/poll/fd_windows.go index 1114d66a7a..309f0291a1 100644 --- a/src/internal/poll/fd_windows.go +++ b/src/internal/poll/fd_windows.go @@ -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 diff --git a/src/syscall/types_windows.go b/src/syscall/types_windows.go index 59bfe5d642..bc9bd4dbd8 100644 --- a/src/syscall/types_windows.go +++ b/src/syscall/types_windows.go @@ -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 )