< prev index next >

hotspot/src/os/bsd/vm/os_bsd.cpp

Print this page
rev 7342 : 8077674: BSD build failures due to undefined macros
Reviewed-by: dsamersoff, kbarrett, hseigel

*** 1195,1210 **** // instead of syscall(SYS_thread_selfid) as it certainly fits to u4 retval = ::pthread_mach_thread_np(::pthread_self()); guarantee(retval != 0, "just checking"); return retval; ! #elif __FreeBSD__ retval = syscall(SYS_thr_self); ! #elif __OpenBSD__ retval = syscall(SYS_getthrid); ! #elif __NetBSD__ retval = (pid_t) syscall(SYS__lwp_self); #endif if (retval == -1) { return getpid(); } --- 1195,1216 ---- // instead of syscall(SYS_thread_selfid) as it certainly fits to u4 retval = ::pthread_mach_thread_np(::pthread_self()); guarantee(retval != 0, "just checking"); return retval; ! #else ! #ifdef __FreeBSD__ retval = syscall(SYS_thr_self); ! #else ! #ifdef __OpenBSD__ retval = syscall(SYS_getthrid); ! #else ! #ifdef __NetBSD__ retval = (pid_t) syscall(SYS__lwp_self); + #endif + #endif + #endif #endif if (retval == -1) { return getpid(); }
< prev index next >