component(developer/golang-123): Add Component
[oi-userland.git] / components / developer / gcc-13 / patches / 0033-Add-__illumos__-preprocessor-definition.patch
blobf7b175ad4b0828babdd448974cc4161c4f7c68b5
1 From 7969f3e7aac42bb7a59f0d5d4e404cef10f228b9 Mon Sep 17 00:00:00 2001
2 From: Andy Fiddaman <omnios@citrus-it.co.uk>
3 Date: Wed, 28 Apr 2021 11:40:25 +0000
4 Subject: Add __illumos__ preprocessor definition
6 ---
7 gcc/config/sol2.h | 1 +
8 1 file changed, 1 insertion(+)
10 diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
11 index dd6d25a534a7..f8c13ba0d25a 100644
12 --- a/gcc/config/sol2.h
13 +++ b/gcc/config/sol2.h
14 @@ -85,6 +85,7 @@ along with GCC; see the file COPYING3. If not see
15 do { \
16 builtin_define_std ("unix"); \
17 builtin_define_std ("sun"); \
18 + builtin_define ("__illumos__"); \
19 builtin_define ("__svr4__"); \
20 builtin_define ("__SVR4"); \
21 builtin_assert ("system=unix"); \