si_errno and friends are macros on NetBSD, so #undef them first.