summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-05 15:40:49 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-05 15:40:49 +0000
commit50307c4e80f56c2cc9d3ea3372e0bdef8aeadb8f (patch)
treea691c30e298464e60139446a1b6ab04ac9587912 /channels
parent7a2d5cbb3e69140e3077c14ce045248e18dd8293 (diff)
fix compilation on Darwin (bug #4462, ugh, we need all this stuff moved into endian.h)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_skinny.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index f39df49ec..2b058dd46 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -82,7 +82,7 @@ typedef unsigned int UINT32;
#define htolel(x) (x)
#define htoles(x) (x)
#else
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__Darwin__)
#define __bswap_16(x) \
((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8))