Return-Path: Received: from [8.12.47.4] ([8.12.47.4]:37042 "EHLO jlevon" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726170AbgAWLBc (ORCPT ); Thu, 23 Jan 2020 06:01:32 -0500 From: john.levon@joyent.com Subject: [PATCH 5/8] add necessary defined for sunos-derived systems Date: Thu, 23 Jan 2020 02:57:00 -0800 Message-Id: <20200123105703.17454-6-john.levon@joyent.com> In-Reply-To: <20200123105703.17454-1-john.levon@joyent.com> References: <20200123105703.17454-1-john.levon@joyent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: smatch-owner@vger.kernel.org List-ID: To: smatch@vger.kernel.org Cc: John Levon , Luc Van Oostenryck From: John Levon Signed-off-by: John Levon Signed-off-by: Luc Van Oostenryck --- lib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib.c b/lib.c index 7da06530..c85ce247 100644 --- a/lib.c +++ b/lib.c @@ -1393,6 +1393,14 @@ static void predefined_macros(void) predefine("__i386", 1, "1"); break; } + +#if defined(__sun__) || defined(__sun) + predefine("__sun__", 1, "1"); + predefine("__sun", 1, "1"); + predefine_nostd("sun"); + predefine("__svr4__", 1, "1"); +#endif + } static void create_builtin_stream(void) -- 2.23.0