From deffbe3fa6ba7ee61622578597c53cbf640b57cd Mon Sep 17 00:00:00 2001 From: yinheli Date: Mon, 28 Aug 2017 16:29:47 +0800 Subject: [PATCH] fix for mips compile issue detail : https://github.com/golang/go/issues/21596 const is untyped int --- syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscalls_linux.go b/syscalls_linux.go index 28ad259..4bc8e2f 100644 --- a/syscalls_linux.go +++ b/syscalls_linux.go @@ -22,7 +22,7 @@ type ifReq struct { pad [0x28 - 0x10 - 2]byte } -func ioctl(fd uintptr, request int, argp uintptr) error { +func ioctl(fd uintptr, request uint, argp uintptr) error { _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp) if errno != 0 { return os.NewSyscallError("ioctl", errno)