fix compilation on Darwin (bug #4462, ugh, we need all this stuff moved into endian.h)
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 5 Jun 2005 15:40:49 +0000 (15:40 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 5 Jun 2005 15:40:49 +0000 (15:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index f39df49..2b058dd 100755 (executable)
@@ -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))