From dfcb82d92d00c7f1516477b19da97c1d2b07f0b4 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 11 May 2017 15:29:03 -0700 Subject: 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 --- libc/bionic/ndk_cruft.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc/bionic/ndk_cruft.cpp') 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 because we stupidly used to inline // getpagesize() and __getpageshift(). Needed for backwards compatibility with old NDK apps. unsigned int __page_size = PAGE_SIZE; -- cgit v1.2.3