diff options
author | Elliott Hughes <enh@google.com> | 2017-05-11 15:29:03 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-05-11 15:29:03 -0700 |
commit | dfcb82d92d00c7f1516477b19da97c1d2b07f0b4 (patch) | |
tree | 84acbc670a0b351ef7059e8ed2455f08e05b4fff /libc/bionic/ndk_cruft.cpp | |
parent | 0e986b8d5ddd1d41db18d8e6af1eb5c58fb3dbe8 (diff) | |
download | android_bionic-dfcb82d92d00c7f1516477b19da97c1d2b07f0b4.tar.gz android_bionic-dfcb82d92d00c7f1516477b19da97c1d2b07f0b4.tar.bz2 android_bionic-dfcb82d92d00c7f1516477b19da97c1d2b07f0b4.zip |
Clean up __isthreaded.
__isthreaded is annoying for ARC++ and useless for everyone. Just hard-code
the value in ndk_cruft for LP32 and be done with it.
Bug: N/A
Test: builds
Change-Id: I08f11a404bbec55ed57cb1e18b5116163c7d7d13
Diffstat (limited to 'libc/bionic/ndk_cruft.cpp')
-rw-r--r-- | libc/bionic/ndk_cruft.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index 016b47694..dbacf18f0 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -52,6 +52,9 @@ extern "C" { // LP64 doesn't need to support any legacy cruft. #if !defined(__LP64__) +// By the time any NDK-built code is running, there are plenty of threads. +int __isthreaded = 1; + // These were accidentally declared in <unistd.h> because we stupidly used to inline // getpagesize() and __getpageshift(). Needed for backwards compatibility with old NDK apps. unsigned int __page_size = PAGE_SIZE; |