Commit Briefs
add compat for errc and warnc
while here also fix the prototypes for warn and warnx
endian.h is not universally available
FreeBSD and NetBSD have sys/endian.h, on MacOS we need to use the functions from libkern/OSByteOrder.h see github issue #1
include compat for reallocarray too
reported by @Et7f3 in github issue #1, thanks!
Merge branch 'portable'
Trying to maintain two branches was impossible at this stage for me alone, so I'll recognize my stupidity and merge the portable branch into the main one. The repository will build using autotools.