]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8623: fix sun studio error trying to compile char[] with c++ compiler
authorMichael Jerris <mike@jerris.com>
Thu, 7 Apr 2016 19:11:42 +0000 (15:11 -0400)
committerMichael Jerris <mike@jerris.com>
Thu, 7 Apr 2016 19:11:42 +0000 (15:11 -0400)
src/include/switch_types.h
src/switch_rtp.c

index 931c41cf6745f67a72df0870b1d22a8d1738eb0a..3ffae84a4d5b45f1926021d9cee4811eb9685eb5 100644 (file)
@@ -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                  */
index a351af68cd29983ce2234b0f68116a926883678a..2d946013405fe4627d089f2efc6542c72d308696 100644 (file)
@@ -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;