$OpenBSD: patch-base_logging_cc,v 1.4 2011/06/08 20:36:56 robert Exp $ --- base/logging.cc.orig Mon Jun 6 11:11:47 2011 +++ base/logging.cc Wed Jun 8 09:58:35 2011 @@ -129,7 +129,7 @@ int32 CurrentThreadId() { return mach_thread_self(); #elif defined(OS_LINUX) return syscall(__NR_gettid); -#elif defined(OS_FREEBSD) +#elif defined(OS_FREEBSD) || defined(OS_OPENBSD) // TODO(BSD): find a better thread ID return reinterpret_cast(pthread_self()); #elif defined(OS_NACL)