From 73ab594c52a63d0eb385167aa58f7bca07e2a422 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Sat, 14 Apr 2018 12:48:55 +1000 Subject: [PATCH] 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 --- src/internal/poll/fd_windows.go | 2 +- src/syscall/types_windows.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 ) -- 2.48.1