[Asterisk-cvs] asterisk/channels chan_oss.c,1.33.2.1,1.33.2.2
russell at lists.digium.com
russell at lists.digium.com
Sat Apr 2 02:06:26 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5375/channels
Modified Files:
Tag: v1-0
chan_oss.c
Log Message:
find endian.h on non-linux (bug #3846)
Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.33.2.1
retrieving revision 1.33.2.2
diff -u -d -r1.33.2.1 -r1.33.2.2
--- chan_oss.c 1 Apr 2005 04:09:45 -0000 1.33.2.1
+++ chan_oss.c 2 Apr 2005 07:59:45 -0000 1.33.2.2
@@ -34,7 +34,24 @@
#include <string.h>
#include <stdlib.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
#include <linux/soundcard.h>
#elif defined(__FreeBSD__)
More information about the svn-commits
mailing list