From 5348c014129b766d621ef82a6e42007009ffc310 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 25 Mar 2010 12:43:56 -0700 Subject: [PATCH] Better fix for gettid() sim-eng breakage from last night. Change-Id: I2e8762d43b3c224a2e102ff82fc79072a85bb4c6 --- core/jni/android_util_Binder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp index 901be5874aad4..d26cd28f962d8 100644 --- a/core/jni/android_util_Binder.cpp +++ b/core/jni/android_util_Binder.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -36,6 +35,7 @@ #include #include #include +#include #include @@ -850,8 +850,8 @@ static void conditionally_log_binder_call(int64_t start_millis, // have gettid, so we just ignore this and don't log if we can't // get the thread id. static bool should_time_binder_calls() { -#ifdef __NR_gettid - return (getpid() == syscall(__NR_gettid)); +#ifdef HAVE_GETTID + return (getpid() == androidGetTid()); #else #warning no gettid(), so not logging Binder calls... return false;