Fix syscalls on different archs

This commit is contained in:
Alexey Khit
2023-07-20 23:29:27 +03:00
parent 7308652f6e
commit 9d4f4e1509
3 changed files with 29 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
//go:build darwin || linux
package mdns
import "syscall"
func SetsockoptInt(fd uintptr, level, opt int, value int) (err error) {
return syscall.SetsockoptInt(int(fd), level, opt, value)
}
func SetsockoptIPMreq(fd uintptr, level, opt int, mreq *syscall.IPMreq) (err error) {
return syscall.SetsockoptIPMreq(int(fd), level, opt, mreq)
}