std.c: fix W functions for NetBSD

I'm not sure where the old logic came from but it certainly didn't match NetBSD
10.1 system headers, and was causing the build system to see incorrect exit
status information for processes that were expected to crash (e.g. SIGABRT).
fb66d7712cAlex Rønne Petersen committed on 1/19/2026, 12:15:57 PMparent4e99f09
1 file changedLine totals unavailable