[PATCH] add necessary defined for sunos-derived systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux