Workaround for OpenBSD extended to all BSDs.