Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3005)

Unified Diff: base/logging.cc

Issue 8228005: openbsd and freebsd fixes for base (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add myself to the AUTHORS Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/basictypes.h ('k') | base/process_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/logging.cc
diff --git a/base/logging.cc b/base/logging.cc
index 2bf4dff061ee44cea1e738c88fe804f28e72dabd..27754af8406531c62ebf2eca7d8520c951c322e5 100644
--- a/base/logging.cc
+++ b/base/logging.cc
@@ -134,11 +134,10 @@ int32 CurrentThreadId() {
return syscall(__NR_gettid);
#elif defined(OS_ANDROID)
return gettid();
-#elif defined(OS_FREEBSD)
- // TODO(BSD): find a better thread ID
- return reinterpret_cast<int64>(pthread_self());
#elif defined(OS_NACL)
return pthread_self();
+#elif defined(OS_POSIX)
+ return reinterpret_cast<int64>(pthread_self());
#endif
}
« no previous file with comments | « base/basictypes.h ('k') | base/process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698