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 <firstname.lastname@example.org>
TryBot-Result: Gobot Gobot <email@example.com>
Reviewed-by: Tobias Klauser <firstname.lastname@example.org>
2 files changed