summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index a43fb6a7386..957f4b5d49a 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -50,6 +50,9 @@ typedef unsigned long ulong;
#endif
#ifdef __FreeBSD__
# include <sys/endian.h> /* htole32 and friends */
+# define __BYTE_ORDER BYTE_ORDER
+# define __LITTLE_ENDIAN LITTLE_ENDIAN
+# define __BIG_ENDIAN BIG_ENDIAN
#elif defined(__OpenBSD__)
# include <endian.h>
# define __BYTE_ORDER BYTE_ORDER