Save errno before usage.
OpenBSD amd64 might work.