From: Kevin P. Fleming Date: Sun, 5 Jun 2005 15:40:49 +0000 (+0000) Subject: fix compilation on Darwin (bug #4462, ugh, we need all this stuff moved into endian.h) X-Git-Tag: 1.2.0-beta1~517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50307c4e80f56c2cc9d3ea3372e0bdef8aeadb8f;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index f39df49ec6..2b058dd464 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))