diff --git a/include/compiler.h b/include/compiler.h index a43fb6a7386176ce556a60f04d0a2c19996e5745..957f4b5d49a872f4642f0c2d34587a1a0abe1252 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