commit | 6405bb3aee4f0f927d6f9dd54a585a33d5f2bb1f | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Dec 07 20:09:24 2015 -0800 |
committer | Yabin Cui <yabinc@google.com> | Mon Dec 07 20:09:24 2015 -0800 |
tree | 39677ef85323e2db724f8e44f0c8e7a62c1298b6 | |
parent | 46b0b1c694bd873bd8130440d9ec1367dbe6da6e [diff] [blame] |
Fix libbacktrace host build. On host build, libbacktrace relies on libcutils to provide gettid() function. Change-Id: Iad83384ea699ca024b71b73cef26755287c9e6fe
diff --git a/libbacktrace/thread_utils.h b/libbacktrace/thread_utils.h index df83581..9590657 100644 --- a/libbacktrace/thread_utils.h +++ b/libbacktrace/thread_utils.h
@@ -19,6 +19,10 @@ #include <unistd.h> +#if !defined(__ANDROID__) +#include <cutils/threads.h> +#endif + __BEGIN_DECLS int tgkill(int tgid, int tid, int sig);