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

@ -1185,12 +1185,18 @@ pid_t os::Bsd::gettid() {
guarantee(retval != 0, "just checking");
return retval;
#elif __FreeBSD__
#else
#ifdef __FreeBSD__
retval = syscall(SYS_thr_self);
#elif __OpenBSD__
#else
#ifdef __OpenBSD__
retval = syscall(SYS_getthrid);
#elif __NetBSD__
#else
#ifdef __NetBSD__
retval = (pid_t) syscall(SYS__lwp_self);
#endif
#endif
#endif
#endif
if (retval == -1) {