driver: fix build on solaris
Solaris has syscall.Rusage but not syscall.Getrusage.
So use golang.org/x/sys/unix for Getrusage instead, which requires
using the unix.Rusage type more. But we still need to use the syscall
type in one place too, which requires converting from the std to unix
type. Little gross, but works.
Run-TryBot: Brad Fitzpatrick <email@example.com>
TryBot-Result: Gobot Gobot <firstname.lastname@example.org>
Reviewed-by: Tobias Klauser <email@example.com>
2 files changed