From: Ruben Kerkhof Date: Sun, 24 Jul 2016 11:19:08 +0000 (+0200) Subject: Make chrony compile with Solaris Studio compiler X-Git-Tag: collectd-5.6.0~183 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d3bb71e733c1cc86a1d2c5d6da3057d5926003e1;p=collectd.git Make chrony compile with Solaris Studio compiler Ideally we'll have autoconf checks for supported attributes, will look into that later. --- diff --git a/src/chrony.c b/src/chrony.c index 23ad992c..012fd9a9 100644 --- a/src/chrony.c +++ b/src/chrony.c @@ -105,8 +105,8 @@ typedef enum } eDaemonReplies; -#if defined(__GNUC__) -# /* GNU gcc extension to enforce struct packing. */ +#if defined(__GNUC__) || defined (__SUNPRO_C) || defined(lint) +# /* extension to enforce struct packing. */ # define ATTRIB_PACKED __attribute__((packed)) #else # error Not defining packed attribute (unknown compiler)