openbsd-ports/www/chromium/patches/patch-base_logging_cc
2011-03-15 11:38:05 +00:00

13 lines
492 B
Plaintext

$OpenBSD: patch-base_logging_cc,v 1.2 2011/03/15 11:38:05 robert Exp $
--- base/logging.cc.orig Fri Mar 11 10:01:33 2011
+++ base/logging.cc Mon Mar 14 10:55:37 2011
@@ -133,7 +133,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)