endian_h2: fall back to POSIX standard endian.h
Fixes build on NetBSD.
Hi @alarixnia
fall back to POSIX standard endian.h
endian.h has become part of POSIX just this year, when the Issue 8 was published in June 2024. Please see the CHANGE HISTORY section on the OpenGroup website. Before that, it was not part of the POSIX, and many (otherwise more or less POSIX-compliant) systems do not have it, and will not have it for some time. I'm not sure if it should already be used as a "universal fallback" (although, in principle, why not). Doesn't NetBSD have its own macro symbol, like FreeBSD or OpenBSD? Anyway, please fix the copyright header as suggested by our code style check workflow.
Closing this PR in favor of #9098 since the author didn't address given comments.