diff --git a/src/suricata-common.h b/src/suricata-common.h index b36c489062..58b5c593ce 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -246,6 +246,25 @@ #endif #endif +/** darwin doesn't defined __BYTE_ORDER and friends, but BYTE_ORDER */ +#ifndef __BYTE_ORDER +#ifdef BYTE_ORDER +#define __BYTE_ORDER BYTE_ORDER +#endif +#endif + +#ifndef __LITTLE_ENDIAN +#ifdef LITTLE_ENDIAN +#define __LITTLE_ENDIAN LITTLE_ENDIAN +#endif +#endif + +#ifndef __BIG_ENDIAN +#ifdef BIG_ENDIAN +#define __BIG_ENDIAN BIG_ENDIAN +#endif +#endif + typedef enum PacketProfileDetectId_ { PROF_DETECT_MPM, PROF_DETECT_MPM_PACKET, /* PKT MPM */