mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +02:00
8077674: BSD build failures due to undefined macros
Reviewed-by: dsamersoff, kbarrett, hseigel
This commit is contained in:
parent
a22fc004de
commit
650fe66a1b
3 changed files with 39 additions and 19 deletions
|
@ -198,14 +198,20 @@ bool os::have_special_privileges() {
|
|||
// i386: 224, ia64: 1105, amd64: 186, sparc 143
|
||||
#ifdef __ia64__
|
||||
#define SYS_gettid 1105
|
||||
#elif __i386__
|
||||
#define SYS_gettid 224
|
||||
#elif __amd64__
|
||||
#define SYS_gettid 186
|
||||
#elif __sparc__
|
||||
#define SYS_gettid 143
|
||||
#else
|
||||
#error define gettid for the arch
|
||||
#ifdef __i386__
|
||||
#define SYS_gettid 224
|
||||
#else
|
||||
#ifdef __amd64__
|
||||
#define SYS_gettid 186
|
||||
#else
|
||||
#ifdef __sparc__
|
||||
#define SYS_gettid 143
|
||||
#else
|
||||
#error define gettid for the arch
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue