From: John Levon <john.levon@xxxxxxxxxx> Signed-off-by: John Levon <john.levon@xxxxxxxxxx> --- lib.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib.c b/lib.c index 739074d1..7181c84f 100644 --- a/lib.c +++ b/lib.c @@ -1630,6 +1630,13 @@ static void predefined_macros(void) predefine("__PIE__", 0, "%d", fpie); } + if (arch_os == OS_SUNOS) { + predefine("__sun__", 1, "1"); + predefine("__sun", 1, "1"); + predefine("sun", 1, "1"); + predefine("__svr4__", 1, "1"); + } + predefined_cmodel(); } -- 2.23.0