diff options
author | Sitsofe Wheeler <sitsofe@yahoo.com> | 2017-07-09 08:09:35 +0100 |
---|---|---|
committer | Sitsofe Wheeler <sitsofe@yahoo.com> | 2017-07-27 06:15:00 +0100 |
commit | 1236d61cdd1079c78985fe14ea4389c9bbdb1b00 (patch) | |
tree | d233815ea5448a52527f0f4fd8c46589a6666a3e /os/os-netbsd.h | |
parent | 1a4e51902e61036e26a47e4a389bbddde84901cd (diff) | |
download | fio-1236d61cdd1079c78985fe14ea4389c9bbdb1b00.tar.gz fio-1236d61cdd1079c78985fe14ea4389c9bbdb1b00.tar.bz2 |
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>
Diffstat (limited to 'os/os-netbsd.h')
-rw-r--r-- | os/os-netbsd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/os-netbsd.h b/os/os-netbsd.h index 7be02a78..eac76cf2 100644 --- a/os/os-netbsd.h +++ b/os/os-netbsd.h @@ -10,6 +10,7 @@ #include <sys/ioctl.h> #include <sys/dkio.h> #include <sys/disklabel.h> +#include <sys/endian.h> /* XXX hack to avoid confilcts between rbtree.h and <sys/rb.h> */ #define rb_node _rb_node #include <sys/sysctl.h> |