From: Michael Jerris Date: Tue, 5 Jul 2011 19:42:02 +0000 (-0400) Subject: FS-2954: attr packed is not available on sun studio X-Git-Tag: v1.2-rc1~108^2^2~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81b56a24904a8d6f5dbeccfab731018df3ce32c5;p=thirdparty%2Ffreeswitch.git FS-2954: attr packed is not available on sun studio --- diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h index 609dde8b7a..17c972c989 100644 --- a/src/include/switch_platform.h +++ b/src/include/switch_platform.h @@ -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