[asterisk-commits] qwell: branch 1.4 r93764 - /branches/1.4/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 18 16:42:41 CST 2007


Author: qwell
Date: Tue Dec 18 16:42:41 2007
New Revision: 93764

URL: http://svn.digium.com/view/asterisk?view=rev&rev=93764
Log:
FreeBSD also does not have byte swap functions.

Issue 11586, patch by sobomax.

Modified:
    branches/1.4/channels/chan_skinny.c

Modified: branches/1.4/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_skinny.c?view=diff&rev=93764&r1=93763&r2=93764
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Tue Dec 18 16:42:41 2007
@@ -107,7 +107,7 @@
 #define htolel(x) (x)
 #define htoles(x) (x)
 #else
-#if defined(SOLARIS) || defined(__Darwin__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(SOLARIS) || defined(__Darwin__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
 #define __bswap_16(x) \
 	((((x) & 0xff00) >> 8) | \
 	 (((x) & 0x00ff) << 8))




More information about the asterisk-commits mailing list