diff --git a/sys_not_unix.go b/sys_not_unix.go index 84038bd..d29b927 100644 --- a/sys_not_unix.go +++ b/sys_not_unix.go @@ -1,4 +1,4 @@ -//go:build !linux && !darwin +//go:build !linux && !darwin && !windows package rcmgr diff --git a/sys_windows.go b/sys_windows.go new file mode 100644 index 0000000..7387eb8 --- /dev/null +++ b/sys_windows.go @@ -0,0 +1,11 @@ +//go:build windows + +package rcmgr + +import ( + "math" +) + +func getNumFDs() int { + return math.MaxInt +}