Mvanbaak said this was needed to compile on OpenBSD, so put it in the OpenBSD section.
[asterisk/asterisk.git] / include / asterisk / endian.h
index dc9d8ee..335a743 100644 (file)
  * Autodetect system endianess
  */
 
-#include "asterisk/compat.h"
 
 #ifndef __BYTE_ORDER
 #ifdef __linux__
 #include <endian.h>
 #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+#include "asterisk/compat.h"
 #include <machine/endian.h>
 #define __BYTE_ORDER BYTE_ORDER
 #define __LITTLE_ENDIAN LITTLE_ENDIAN