From 52c7b88fe89b3ef23d2641bca2f18b6ec5882720 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Fri, 2 Dec 2022 13:58:51 -0500 Subject: [PATCH] gopls/internal/robustio: only define ERROR_SHARING_VIOLATION on Windows The type syscall.Errno is not defined on plan9, so defining a constant of that type in an unconstrained file causes build errors on the plan9 builders. The ERROR_SHARING_VIOLATION constant is only needed for Windows and only makes sense on that platform, so we move it to a Windows-only file. Change-Id: I4fbad994a71f746523557f82c72c08ddd5fbcb2e Reviewed-on: https://go-review.googlesource.com/c/tools/+/454501 Reviewed-by: Robert Findley Run-TryBot: Bryan Mills gopls-CI: kokoro TryBot-Result: Gopher Robot Auto-Submit: Bryan Mills --- gopls/internal/robustio/{gopls.go => gopls_windows.go} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename gopls/internal/robustio/{gopls.go => gopls_windows.go} (100%) diff --git a/gopls/internal/robustio/gopls.go b/gopls/internal/robustio/gopls_windows.go similarity index 100% rename from gopls/internal/robustio/gopls.go rename to gopls/internal/robustio/gopls_windows.go