mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 23:39:35 +00:00 
			
		
		
		
	Mvanbaak said this was needed to compile on OpenBSD, so put it in the OpenBSD section.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -27,12 +27,12 @@ | |||||||
|  * Autodetect system endianess |  * Autodetect system endianess | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include "asterisk/compat.h" |  | ||||||
|  |  | ||||||
| #ifndef __BYTE_ORDER | #ifndef __BYTE_ORDER | ||||||
| #ifdef __linux__ | #ifdef __linux__ | ||||||
| #include <endian.h> | #include <endian.h> | ||||||
| #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) | #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) | ||||||
|  | #include "asterisk/compat.h" | ||||||
| #include <machine/endian.h> | #include <machine/endian.h> | ||||||
| #define __BYTE_ORDER BYTE_ORDER | #define __BYTE_ORDER BYTE_ORDER | ||||||
| #define __LITTLE_ENDIAN LITTLE_ENDIAN | #define __LITTLE_ENDIAN LITTLE_ENDIAN | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user