From deffbe3fa6ba7ee61622578597c53cbf640b57cd Mon Sep 17 00:00:00 2001 From: yinheli Date: Mon, 28 Aug 2017 16:29:47 +0800 Subject: [PATCH 1/3] 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) From affaa7322ae36ff75c7020c48e8718d35aa2c039 Mon Sep 17 00:00:00 2001 From: yinheli Date: Tue, 19 Sep 2017 15:55:00 +0800 Subject: [PATCH 2/3] use uintptr instand of uint thanks @songgao --- syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscalls_linux.go b/syscalls_linux.go index 4bc8e2f..cda8074 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 uint, argp uintptr) error { +func ioctl(fd uintptr, request uintptr, argp uintptr) error { _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp) if errno != 0 { return os.NewSyscallError("ioctl", errno) From b1ef928105e9c00aa35bef52f9b94994852b2d5f Mon Sep 17 00:00:00 2001 From: yinheli Date: Fri, 22 Sep 2017 15:32:42 +0800 Subject: [PATCH 3/3] update contributors --- CONTRIBUTORS | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ded5b3f..bf65703 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -6,3 +6,4 @@ daregod Lucus Lee Arroyo Networks, LLC Tony Lu +yinheli \ No newline at end of file