OSDN Git Service

Work around missing _Exit in old API levels.
authorElliott Hughes <enh@google.com>
Fri, 30 Jun 2017 23:39:25 +0000 (16:39 -0700)
committerElliott Hughes <enh@google.com>
Fri, 30 Jun 2017 23:39:25 +0000 (16:39 -0700)
Rather than do this in libandroid_support, we may as well just stick it with
the other historical stdlib workarounds in bionic itself...

Bug: N/A
Test: built new NDK test
Change-Id: Ia5cf4010581eb79d4adf924e87d0bc050b9e2839

libc/include/android/legacy_stdlib_inlines.h

index e211de5..82186c7 100644 (file)
@@ -36,6 +36,8 @@
 
 __BEGIN_DECLS
 
+__noreturn void _Exit(int) __RENAME(_exit);
+
 static __inline float strtof(const char *nptr, char **endptr) {
   return (float)strtod(nptr, endptr);
 }