Is __OpenBSD__ defined for bitrig and other OpenBSD variants?
For context, Bitrig support was added in #6982 (moved) (commit d92d3f33356af002892ba5754d9d36cc4504c95f).
The Pre-defined Compiler Macros wiki contains a bunch of operating systems but not Bitrig. Issue 72 on the Bitrig bug tracker was about getting Bitrig added to this list.
The param.h header typically contains these preprocessor definitions. That header file in the Bitrig repository contains no __OpenBSD__. The current patch would therefore remove support for Bitrig. It does contain OpenBSD which seems to exists for other forks (like LibertyBSD) also.
If so, this patch is fine, flip it into merge-ready.
IMO the patch is fine, because Bitrig isn't explicitly supported and other parts of the code already uses __OpenBSD__ without caring about Bitrig (a quick grep shows 10 lines using __OpenBSD__ and 4 lines using OPENBSD).
If not, we need to rethink how we make this change.
If we really care about Bitrig and other OpenBSD forks, the patch could be fixed by replacing OPENBSD with OpenBSD but -1 from me on that.
Given cypherpunks' comment, I think we should switch all uses of OpenBSD and OPENBSD to OpenBSD instead. (Unless there's some reason we only want those OSs defining one of the other macros.)
Ideally, we should avoid using these macros at all, and check for features with configure instead.