]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
FreeBSD also does not have byte swap functions.
authorJason Parker <jparker@digium.com>
Tue, 18 Dec 2007 22:42:41 +0000 (22:42 +0000)
committerJason Parker <jparker@digium.com>
Tue, 18 Dec 2007 22:42:41 +0000 (22:42 +0000)
Issue 11586, patch by sobomax.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@93764 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 60566c48550a1a7c4a6aae014166197109bfd58c..9508906f7216c50633af57f6179359794af75972 100644 (file)
@@ -107,7 +107,7 @@ static char version_id[16] = "P002F202";
 #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))