diff --git a/libutils/Android.mk b/libutils/Android.mk index 0c8625ca5..b55e635bc 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 03fde978b..9bcd06330 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;