driver: fix build on solaris

Solaris has syscall.Rusage but not syscall.Getrusage.

So use 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.

Change-Id: I7176062f1325cbb808e5f0ef481be966d94c1ac0
Run-TryBot: Brad Fitzpatrick <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Tobias Klauser <>
2 files changed