From d3bb71e733c1cc86a1d2c5d6da3057d5926003e1 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 13:19:08 +0200 Subject: [PATCH] Make chrony compile with Solaris Studio compiler Ideally we'll have autoconf checks for supported attributes, will look into that later. --- src/chrony.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2