From 50307c4e80f56c2cc9d3ea3372e0bdef8aeadb8f Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sun, 5 Jun 2005 15:40:49 +0000 Subject: [PATCH] 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 --- channels/chan_skinny.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))