From 29263bf7b9d7884e3dd8bbff0057c5023e28fbd1 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 7 Apr 2016 15:11:42 -0400 Subject: [PATCH] FS-8623: fix sun studio error trying to compile char[] with c++ compiler --- src/include/switch_types.h | 7 ------- src/switch_rtp.c | 6 +++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/include/switch_types.h b/src/include/switch_types.h index 931c41cf67..3ffae84a4d 100644 --- a/src/include/switch_types.h +++ b/src/include/switch_types.h @@ -948,13 +948,6 @@ typedef struct { #pragma pack(push, r1, 1) #endif -typedef struct switch_rtcp_sdes_unit_s { - unsigned char type; - unsigned char length; - char value[]; -} switch_rtcp_sdes_unit_t; - - #if SWITCH_BYTE_ORDER == __BIG_ENDIAN typedef struct switch_rtcp_hdr_s { unsigned version:2; /* protocol version */ diff --git a/src/switch_rtp.c b/src/switch_rtp.c index a351af68cd..2d94601340 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -129,7 +129,11 @@ typedef struct { #pragma pack(push, r1, 1) #endif - +typedef struct switch_rtcp_sdes_unit_s { + unsigned char type; + unsigned char length; + char value[]; +} switch_rtcp_sdes_unit_t; typedef struct { uint32_t ssrc;