summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plot.h b/src/plot.h
index 2fd2ebf..bab3007 100644
--- a/src/plot.h
+++ b/src/plot.h
@@ -35,6 +35,16 @@
#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
#define NSFB_BE_BYTE_ORDER
#endif
+#elif defined(__FreeBSD__)
+ /* freebsd has the include somewhere different */
+ #include <machine/endian.h>
+ if defined(BYTE_ORDER)
+ #if BYTE_ORDER == BIG_ENDIAN
+ #define NSFB_BE_BYTE_ORDER
+ #endif
+ #else
+ #error "Endian determination failed"
+ #endif
#else
#include <endian.h>
#if defined(__BYTE_ORDER__)