changeset 7143:886015e9638d

Fix incorrect preprocessor directives.
author jukim
date Thu, 02 Jul 2015 18:17:49 -0400
parents 10ef1451139e
children 45d109da3cb9
files src/os/bsd/vm/os_bsd.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/os_bsd.cpp	Wed Jun 17 12:45:28 2015 -0400
+++ b/src/os/bsd/vm/os_bsd.cpp	Thu Jul 02 18:17:49 2015 -0400
@@ -1234,14 +1234,14 @@
 pid_t os::Bsd::gettid() {
   int retval = -1;
 
-#ifdef __APPLE__ //XNU kernel
+#if defined(__APPLE__) //XNU kernel
   // despite the fact mach port is actually not a thread id use it
   // 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;
 
-#elifdef __FreeBSD__
+#elif defined(__FreeBSD__)
 #if __FreeBSD_version > 900030
   return ::pthread_getthreadid_np();
 #else
@@ -1249,9 +1249,9 @@
   thr_self(&tid);
   return (pid_t)tid;
 #endif
-#elifdef __OpenBSD__
+#elif defined(__OpenBSD__)
   retval = syscall(SYS_getthrid);
-#elifdef __NetBSD__
+#elif defined(__NetBSD__)
   retval = (pid_t) _lwp_self();
 #endif