diff --git a/core/fs/files+polyfill.go b/core/fs/files+polyfill.go index fef5a0267..9f798e41e 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 b9bb1edcb..fec847d53 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 6b3c27734..5bdde8b5f 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 8820fdb8b..c9d300fa4 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 000000000..7ad70cecf --- /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 d76e6c539..9afb29409 100644 --- a/core/stat/alert_polyfill.go +++ b/core/stat/alert+polyfill.go @@ -1,3 +1,4 @@ +//go:build !linux // +build !linux package stat