go-pinger icon indicating copy to clipboard operation
go-pinger copied to clipboard

can't build on windows

Open freexdk opened this issue 7 years ago • 1 comments

Can't build on windows Tried both cross compile and directly on windows 10 Linux works fine.

github.com/raintank/go-pinger

../../github.com/raintank/go-pinger/packet_reader.go:75:33: not enough arguments in call to syscall.Syscall ../../github.com/raintank/go-pinger/packet_reader.go:75:34: undefined: syscall.SYS_IOCTL ../../github.com/raintank/go-pinger/packet_reader.go:75:74: undefined: syscall.SIOCGSTAMP ../../github.com/raintank/go-pinger/packet_reader.go:149:33: not enough arguments in call to syscall.Syscall ../../github.com/raintank/go-pinger/packet_reader.go:149:34: undefined: syscall.SYS_IOCTL ../../github.com/raintank/go-pinger/packet_reader.go:149:74: undefined: syscall.SIOCGSTAMP

freexdk avatar Jul 22 '18 16:07 freexdk

yes, i use the SIOCGSTAMP ioctl operation to get the packet receive time. This is a linux only feature.

I will happily accept a PR to provide support for Windows and OSX, but it is not on my todo list.

woodsaj avatar Jul 23 '18 05:07 woodsaj