]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2954: attr packed is not available on sun studio
authorMichael Jerris <mike@jerris.com>
Tue, 5 Jul 2011 19:42:02 +0000 (15:42 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 5 Jul 2011 19:42:15 +0000 (15:42 -0400)
src/include/switch_platform.h

index 609dde8b7a42f7db4621a92b8112309578837fc3..17c972c9891f0dc72cdb3a24decb924491d7e662 100644 (file)
@@ -112,6 +112,9 @@ typedef int gid_t;
 
 #else
 /* packed attribute */
+#if (defined __SUNPRO_CC) || defined(__SUNPRO_C)
+#define PACKED
+#endif
 #ifndef PACKED
 #define PACKED __attribute__ ((__packed__))
 #endif