$OpenBSD: patch-base_logging_cc,v 1.1 2011/02/08 09:43:02 espie Exp $
--- base/logging.cc.orig	Mon Jan 24 14:44:48 2011
+++ base/logging.cc	Mon Jan 24 14:44:59 2011
@@ -130,7 +130,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<int64>(pthread_self());
 #elif defined(OS_NACL)
