FS-2954: attr packed is not available on sun studio

This commit is contained in:
Michael Jerris 2011-07-05 15:42:02 -04:00
parent e66051390c
commit 81b56a2490
1 changed files with 3 additions and 0 deletions

View 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