Mvanbaak said this was needed to compile on OpenBSD, so put it in the OpenBSD section.
authorJeff Peeler <jpeeler@digium.com>
Mon, 6 Oct 2008 22:59:58 +0000 (22:59 +0000)
committerJeff Peeler <jpeeler@digium.com>
Mon, 6 Oct 2008 22:59:58 +0000 (22:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146920 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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