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

Unified Diff: base/process_util_linux.cc

Issue 15405003: add a macro that really identifies glibc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | « no previous file | build/build_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_linux.cc
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
index 2c2824fd77db68da521883918bc88b580e99caa2..2bed9453befe7e5775dae8df685bf9450a0bc4bb 100644
--- a/base/process_util_linux.cc
+++ b/base/process_util_linux.cc
@@ -745,7 +745,7 @@ void OnNoMemory() {
} // namespace
-#if !defined(OS_ANDROID) && !defined(USE_TCMALLOC) && \
+#if defined(GLIBC) && !defined(USE_TCMALLOC) && \
agl 2013/05/20 15:18:22 It's not clear that we don't actually want this ma
Mostyn Bramley-Moore 2013/05/20 20:41:41 I downloaded android-ndk-r8e and inspected platfor
!defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER) && \
!defined(THREAD_SANITIZER)
@@ -826,7 +826,7 @@ int posix_memalign(void** ptr, size_t alignment, size_t size) {
}
} // extern C
-#endif // ANDROID, TCMALLOC, *_SANITIZER
+#endif // GLIBC, !TCMALLOC, !*_SANITIZER
void EnableTerminationOnHeapCorruption() {
// On Linux, there nothing to do AFAIK.
« no previous file with comments | « no previous file | build/build_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698