mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-15 21:00:56 +08:00

- 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.
14 lines
355 B
Go
14 lines
355 B
Go
//go:build windows
|
|
|
|
package mdns
|
|
|
|
import "syscall"
|
|
|
|
func SetsockoptInt(fd uintptr, level, opt int, value int) (err error) {
|
|
return syscall.SetsockoptInt(syscall.Handle(fd), level, opt, value)
|
|
}
|
|
|
|
func SetsockoptIPMreq(fd uintptr, level, opt int, mreq *syscall.IPMreq) (err error) {
|
|
return syscall.SetsockoptIPMreq(syscall.Handle(fd), level, opt, mreq)
|
|
}
|