Make sure the library compiles for windows

systemd sockets are not applicable for windows. However compilation
should not fail on windows
This commit is contained in:
2025-07-17 20:34:55 -04:00
parent 97b73fb442
commit 80808310ce
3 changed files with 29 additions and 11 deletions

10
fd_windows.go Normal file
View File

@@ -0,0 +1,10 @@
package anyhttp
import (
"errors"
"net"
)
func makeFdListener(fd int, name string) (net.Listener, error) {
return nil, errors.New("windows not supported")
}