mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 11:43:52 +00:00
find endian.h on non-linux (bug #3846)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -34,7 +34,24 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <endian.h>
|
|
||||||
|
#if defined( __OpenBSD__ )
|
||||||
|
# include <sys/endian.h>
|
||||||
|
#elif defined( __FreeBSD__ ) || defined( __NetBSD__ )
|
||||||
|
# include <sys/endian.h>
|
||||||
|
#elif defined( BSD ) && ( BSD >= 199103 ) || defined(__APPLE__)
|
||||||
|
# include <machine/endian.h>
|
||||||
|
#elif defined ( SOLARIS )
|
||||||
|
# include <solaris-compat/compat.h>
|
||||||
|
#elif defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
|
||||||
|
# include <endian.h>
|
||||||
|
#if !defined(__APPLE__)
|
||||||
|
# include <byteswap.h>
|
||||||
|
#endif
|
||||||
|
#elif defined( linux )
|
||||||
|
# include <endian.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
#include <linux/soundcard.h>
|
#include <linux/soundcard.h>
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
|
Reference in New Issue
Block a user