8077674: BSD build failures due to undefined macros

Reviewed-by: dsamersoff, kbarrett, hseigel
This commit is contained in:
David Holmes 2015-04-20 21:32:28 -04:00
parent a22fc004de
commit 650fe66a1b
3 changed files with 39 additions and 19 deletions

View file

@ -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