From f5fadf1016be1efdf91b1ff5c3323df54a101382 Mon Sep 17 00:00:00 2001
From: Richard PALO <richard@NetBSD.org>
Date: Sat, 21 Nov 2015 06:57:09 +0100
Subject: [PATCH] tools/build convert sun=>__sun for strict ISO compilers
Signed-off-by: Richard PALO <richard@NetBSD.org>
---
src/engine/boehm_gc/include/gc_config_macros.h | 2 +-
src/engine/boehm_gc/include/private/gcconfig.h | 10 +++++-----
src/engine/jam.h | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/engine/boehm_gc/include/gc_config_macros.h b/src/engine/boehm_gc/include/gc_config_macros.h
index 762162a..21d870f 100644
|
a
|
b
|
|
| 95 | 95 | # define GC_PTHREADS |
| 96 | 96 | # endif |
| 97 | 97 | # if defined(__sparc) && !defined(__linux__) \ |
| 98 | | || defined(sun) && (defined(i386) || defined(__i386__)) |
| | 98 | || defined(__sun) && (defined(i386) || defined(__i386__)) |
| 99 | 99 | # define GC_SOLARIS_THREADS |
| 100 | 100 | # define GC_PTHREADS |
| 101 | 101 | # endif |
diff --git a/src/engine/boehm_gc/include/private/gcconfig.h b/src/engine/boehm_gc/include/private/gcconfig.h
index 61cf9ea..be54b6b 100644
|
a
|
b
|
|
| 69 | 69 | # define mach_type_known |
| 70 | 70 | # endif |
| 71 | 71 | # endif |
| 72 | | # if defined(sun) && defined(mc68000) |
| | 72 | # if defined(__sun) && defined(mc68000) |
| 73 | 73 | # error SUNOS4 no longer supported |
| 74 | 74 | # endif |
| 75 | 75 | # if defined(hp9000s300) |
| … |
… |
|
| 141 | 141 | # define SEQUENT |
| 142 | 142 | # define mach_type_known |
| 143 | 143 | # endif |
| 144 | | # if defined(sun) && (defined(i386) || defined(__i386__)) |
| | 144 | # if defined(__sun) && (defined(i386) || defined(__i386__)) |
| 145 | 145 | # define I386 |
| 146 | 146 | # define SOLARIS |
| 147 | 147 | # define mach_type_known |
| 148 | 148 | # endif |
| 149 | | # if defined(sun) && defined(__amd64) |
| | 149 | # if defined(__sun) && defined(__amd64) |
| 150 | 150 | # define X86_64 |
| 151 | 151 | # define SOLARIS |
| 152 | 152 | # define mach_type_known |
| … |
… |
|
| 159 | 159 | # if defined(ibm032) |
| 160 | 160 | # error IBM PC/RT no longer supported. |
| 161 | 161 | # endif |
| 162 | | # if defined(sun) && (defined(sparc) || defined(__sparc)) |
| | 162 | # if defined(__sun) && (defined(sparc) || defined(__sparc)) |
| 163 | 163 | # define SPARC |
| 164 | 164 | /* Test for SunOS 5.x */ |
| 165 | 165 | # include <errno.h> |
| 166 | 166 | # define SOLARIS |
| 167 | 167 | # define mach_type_known |
| 168 | 168 | # endif |
| 169 | | # if defined(sparc) && defined(unix) && !defined(sun) && !defined(linux) \ |
| | 169 | # if defined(sparc) && defined(unix) && !defined(__sun) && !defined(linux) \ |
| 170 | 170 | && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) \ |
| 171 | 171 | && !defined(__DragonFly__) |
| 172 | 172 | # define SPARC |
diff --git a/src/engine/jam.h b/src/engine/jam.h
index b9d415e..db3a37f 100644
|
a
|
b
|
|
| 257 | 257 | #define OSMINOR "OS=SINIX" |
| 258 | 258 | #define OS_SINIX |
| 259 | 259 | #endif |
| 260 | | #ifdef sun |
| | 260 | #ifdef __sun |
| 261 | 261 | #if defined(__svr4__) || defined(__SVR4) |
| 262 | 262 | #define OSMINOR "OS=SOLARIS" |
| 263 | 263 | #define OS_SOLARIS |