diff options
author | Evan Nemerson <evan@nemerson.com> | 2015-09-29 08:34:28 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-11-25 16:06:30 +0100 |
commit | ca7d031dadc0c49a3e3c9444448a52757ffbbc6d (patch) | |
tree | c6b473d00b0246c6db19a9c85f2718726c829598 /crc32.c | |
parent | 5428df7b783825bf97cce04053375e6c7afa39cb (diff) |
Fix compilation on BSD
The endianness functions are in <sys/endian.h>, not <endian.h> as
they are in Linux.
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,6 +23,8 @@ # endif #elif __APPLE__ # include <machine/endian.h> +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragoFly__) +# include <sys/endian.h> #else # include <endian.h> #endif |