mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue