[PATCH 5/8] add necessary defined for sunos-derived systems

[email protected]
Newsgroups org.kernel.vger.smatch
Message-ID <[email protected]>
From: John Levon <[email protected]>

Signed-off-by: John Levon <[email protected]>
Signed-off-by: Luc Van Oostenryck <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.