diff options
| author | fisted <van.fisted@googlemail.com> | 2011-06-29 22:56:49 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-29 23:07:30 +0200 |
| commit | ca7c82f649fea5f877ae4156387c4ad30d79d6b6 (patch) | |
| tree | 776c8827a554b99fc659809042020471a4864df5 /src | |
| parent | 123eab41c8e201da58ffbb6bb215716334bec652 (diff) | |
| download | zcatch-ca7c82f649fea5f877ae4156387c4ad30d79d6b6.tar.gz zcatch-ca7c82f649fea5f877ae4156387c4ad30d79d6b6.zip | |
Fixed FreeBSD build
Diffstat (limited to 'src')
| -rw-r--r-- | src/base/detect.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/base/detect.h b/src/base/detect.h index 631105e8..f9ca5779 100644 --- a/src/base/detect.h +++ b/src/base/detect.h @@ -78,7 +78,12 @@ /* use gcc endianness definitions when available */ #if defined(__GNUC__) && !defined(__APPLE__) - #include <endian.h> + #if defined(__FreeBSD__) || defined(__OpenBSD__) + #include <sys/endian.h> + #else + #include <endian.h> + #endif + #if __BYTE_ORDER == __LITTLE_ENDIAN #define CONF_ARCH_ENDIAN_LITTLE 1 #elif __BYTE_ORDER == __BIG_ENDIAN |