refactor(mdns): consolidate platform-specific syscall files

- Rename `syscall_linux.go` to `syscall.go` with build constraints for non-BSD and non-Windows platforms.
- Merge `syscall_darwin.go` into `syscall_bsd.go` and adjust build constraints for BSD platforms (Darwin, FreeBSD, OpenBSD).
- Remove redundant `syscall_freebsd.go`.
- Add build constraints to `syscall_windows.go` for Windows platform.
This commit is contained in:
Sergey Krashevich
2024-04-30 01:49:01 +03:00
parent 732fe47836
commit e080eac204
4 changed files with 6 additions and 24 deletions
+2
View File
@@ -1,3 +1,5 @@
//go:build windows
package mdns
import "syscall"