fix for mips compile

issue detail : https://github.com/golang/go/issues/21596
const is untyped int
This commit is contained in:
yinheli 2017-08-28 16:29:47 +08:00 committed by GitHub
parent 6b639456fc
commit deffbe3fa6

View file

@ -22,7 +22,7 @@ type ifReq struct {
pad [0x28 - 0x10 - 2]byte 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) _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp)
if errno != 0 { if errno != 0 {
return os.NewSyscallError("ioctl", errno) return os.NewSyscallError("ioctl", errno)