Skip to content

Commit

Permalink
Fix Solaris/SunOS detection (#370)
Browse files Browse the repository at this point in the history
GCC doesn't define `sun`.

Tested on 'SunOS solaris 5.11 11.4.0.15.0 i86pc i386 i86pc'
  • Loading branch information
Kojoley authored Apr 21, 2024
1 parent d5a432a commit 74311fa
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/engine/jam.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,12 @@
#define OSMINOR "OS=SINIX"
#define OS_SINIX
#endif
#ifdef sun
#if defined(__svr4__) || defined(__SVR4)
#define OSMINOR "OS=SOLARIS"
#define OS_SOLARIS
#else
#define OSMINOR "OS=SUNOS"
#define OS_SUNOS
#endif
#if defined(__svr4__) || defined(__SVR4)
#define OSMINOR "OS=SOLARIS"
#define OS_SOLARIS
#elif defined(__sun__) || defined(__sun) || defined(sun)
#define OSMINOR "OS=SUNOS"
#define OS_SUNOS
#endif
#ifdef ultrix
#define OSMINOR "OS=ULTRIX"
Expand Down

0 comments on commit 74311fa

Please sign in to comment.