Fix endian.h header location for several BSD systems. I am the maintainer of the FreeBSD port and this was causing a build failure for me. AFAIK NetBSD and DragonFly also need <sys/endian.h>, but OpenBSD should use <endian.h> in the userland.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Fix endian.h header location for several BSD systems. I am the maintainer of the FreeBSD port and this was causing a build failure for me. AFAIK NetBSD and DragonFly also need <sys/endian.h>, but OpenBSD should use <endian.h> in the userland.