2
0
Эх сурвалжийг харах

Merge pull request #29 from yinheli/patch-1

fix for mips compile
Song Gao 8 жил өмнө
parent
commit
dc106b4195

+ 1 - 0
CONTRIBUTORS

@@ -7,3 +7,4 @@ Lucus Lee <[email protected]>
 Arroyo Networks, LLC <[email protected]>
 Arroyo Networks, LLC <[email protected]>
 Tony Lu <[email protected]>
 Tony Lu <[email protected]>
 ajee cai <[email protected]>
 ajee cai <[email protected]>
+yinheli <[email protected]>

+ 1 - 1
syscalls_linux.go

@@ -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 uintptr, 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)