diff options
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; |