summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-17 23:12:15 +0000
committerMark Spencer <markster@digium.com>2005-03-17 23:12:15 +0000
commitf9cfe6031288acf02cbdf95d370ecb38f5a929dc (patch)
tree3fa0c3a5fb61e3662f4353566a235dca4291f79a /rtp.c
parent4c4264a448a4096be209649e170759fd0dde9ba4 (diff)
Add support for Solaris/x86 (bug #3064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rtp.c b/rtp.c
index 037b123a3..6ca1f916c 100755
--- a/rtp.c
+++ b/rtp.c
@@ -1170,11 +1170,9 @@ int ast_rtp_sendcng(struct ast_rtp *rtp, int level)
return 0;
}
-#ifdef SOLARIS
+#if defined(SOLARIS) && defined(__sparc__)
static void put_uint32(unsigned char *buf, int i)
{
- unsigned char *c = (unsigned char *)&i;
-
buf[0] = (i>>24) & 0xff;
buf[1] = (i>>16) & 0xff;
buf[2] = (i>>8) & 0xff;