From 7bf5f209cec9fcf5f6eb744bcc05e4f97a37648a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 12 Sep 2014 10:19:08 -0700 Subject: Move libutils over to pthread_gettid_np. Bug: 17476168 Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915 --- libutils/Android.mk | 3 +-- libutils/Threads.cpp | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'libutils') diff --git a/libutils/Android.mk b/libutils/Android.mk index 0c8625c..b55e635 100644 --- a/libutils/Android.mk +++ b/libutils/Android.mk @@ -93,8 +93,7 @@ endif LOCAL_CFLAGS += -Werror LOCAL_C_INCLUDES += \ - bionic/libc \ - external/zlib + external/zlib LOCAL_STATIC_LIBRARIES := \ libcutils diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index 03fde97..9bcd063 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp @@ -28,9 +28,6 @@ # include # include # include -#ifdef HAVE_ANDROID_OS -# include -#endif #elif defined(HAVE_WIN32_THREADS) # include # include @@ -855,7 +852,7 @@ pid_t Thread::getTid() const pid_t tid; if (mRunning) { pthread_t pthread = android_thread_id_t_to_pthread(mThread); - tid = __pthread_gettid(pthread); + tid = pthread_gettid_np(pthread); } else { ALOGW("Thread (this=%p): getTid() is undefined before run()", this); tid = -1; -- cgit v1.1