From 81b56a24904a8d6f5dbeccfab731018df3ce32c5 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 5 Jul 2011 15:42:02 -0400 Subject: [PATCH] FS-2954: attr packed is not available on sun studio --- src/include/switch_platform.h | 3 +++ 1 file changed, 3 insertions(+) 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