diff --git a/core/fs/files+polyfill.go b/core/fs/files+polyfill.go index fef5a026..9f798e41 100644 --- a/core/fs/files+polyfill.go +++ b/core/fs/files+polyfill.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package fs diff --git a/core/proc/goroutines+polyfill.go b/core/proc/goroutines+polyfill.go index b9bb1edc..fec847d5 100644 --- a/core/proc/goroutines+polyfill.go +++ b/core/proc/goroutines+polyfill.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package proc diff --git a/core/proc/profile+polyfill.go b/core/proc/profile+polyfill.go index 6b3c2773..5bdde8b5 100644 --- a/core/proc/profile+polyfill.go +++ b/core/proc/profile+polyfill.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package proc diff --git a/core/proc/shutdown+polyfill.go b/core/proc/shutdown+polyfill.go index 8820fdb8..c9d300fa 100644 --- a/core/proc/shutdown+polyfill.go +++ b/core/proc/shutdown+polyfill.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package proc diff --git a/core/proc/signals+polyfill.go b/core/proc/signals+polyfill.go new file mode 100644 index 00000000..7ad70cec --- /dev/null +++ b/core/proc/signals+polyfill.go @@ -0,0 +1,10 @@ +//go:build windows +// +build windows + +package proc + +import "context" + +func Done() <-chan struct{} { + return context.Background().Done() +} diff --git a/core/stat/alert_polyfill.go b/core/stat/alert+polyfill.go similarity index 90% rename from core/stat/alert_polyfill.go rename to core/stat/alert+polyfill.go index d76e6c53..9afb2940 100644 --- a/core/stat/alert_polyfill.go +++ b/core/stat/alert+polyfill.go @@ -1,3 +1,4 @@ +//go:build !linux // +build !linux package stat