# HG changeset patch # User Gleb Smirnov # Date 1390750965 -14400 # Sun Jan 26 19:42:45 2014 +0400 # Node ID 4dfd8f109dee49bc9d8c6d95d58bbce03cd662b7 # Parent 9a11d5e679cf55c9d5df50577502fbe740407ac1 Fixed src/os/bsd/vm/os_bsd.cpp to use defined() to determine the version of bsd diff -r 9a11d5e679cf -r 4dfd8f109dee src/os/bsd/vm/os_bsd.cpp --- a/src/os/bsd/vm/os_bsd.cpp Fri Jan 24 15:07:51 2014 -0800 +++ b/src/os/bsd/vm/os_bsd.cpp Sun Jan 26 19:42:45 2014 +0400 @@ -1147,11 +1147,11 @@ guarantee(retval != 0, "just checking"); return retval; -#elif __FreeBSD__ +#elif defined(__FreeBSD__) retval = syscall(SYS_thr_self); -#elif __OpenBSD__ +#elif defined(__OpenBSD__) retval = syscall(SYS_getthrid); -#elif __NetBSD__ +#elif defined(__NetBSD__) retval = (pid_t) syscall(SYS__lwp_self); #endif