Diff reduction against Illumos.

MFC after:	2 weeks