diff options
author | Yabin Cui <yabinc@google.com> | 2015-04-02 17:47:48 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-04-03 19:01:17 -0700 |
commit | f796985923e2d8308e00ed9567f36546dafb98d7 (patch) | |
tree | 4fd9bbdae36ecfd15a4e08cdad3c7818995760ec /tests/stack_protector_test.cpp | |
parent | 06b6e3c51d38d70c5ca99f3a3f795697031ac27f (diff) |
Fix bug for recursive/errorcheck mutex on 32-bit devices.
Bug: 19216648
Change-Id: I3b43b2d18d25b9bde352da1e35f9568133dec7cf
Diffstat (limited to 'tests/stack_protector_test.cpp')
-rw-r--r-- | tests/stack_protector_test.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/stack_protector_test.cpp b/tests/stack_protector_test.cpp index 80077113b..22285d123 100644 --- a/tests/stack_protector_test.cpp +++ b/tests/stack_protector_test.cpp @@ -24,14 +24,10 @@ #include <pthread.h> #include <stdint.h> #include <stdio.h> -#include <sys/syscall.h> #include <unistd.h> #include <set> -#if defined(__GLIBC__) -// glibc doesn't expose gettid(2). -pid_t gettid() { return syscall(__NR_gettid); } -#endif // __GLIBC__ +extern "C" pid_t gettid(); // For x86, bionic and glibc have per-thread stack guard values (all identical). #if defined(__i386__) |