os: add missing include for bswap_* on BSDs
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 9 Jul 2017 07:09:35 +0000 (08:09 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Thu, 27 Jul 2017 05:15:00 +0000 (06:15 +0100)
commit1236d61cdd1079c78985fe14ea4389c9bbdb1b00
treed233815ea5448a52527f0f4fd8c46589a6666a3e
parent1a4e51902e61036e26a47e4a389bbddde84901cd
os: add missing include for bswap_* on BSDs

Commit 0dcebdf4a70ef0d8144b8fcba763ae87e7fc74b5 ("configure: add endian
check") removed the sys/endian.h include from the os/*.h BSD headers but
this include is needed to access the bswap_* macros. The lack of this
include wouldn't show up unless you were compiling for a big-endian BSD
platform.

This commit adds the include back for {Free,Net,Open}BSD and adds it for
the first time to the DragonFlyBSD header.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
os/os-dragonfly.h
os/os-freebsd.h
os/os-netbsd.h
os/os-openbsd.h