From: John Levon <john.levon@xxxxxxxxxx> Signed-off-by: John Levon <john.levon@xxxxxxxxxx> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- 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