diff options
Diffstat (limited to 'libc/bionic/ndk_cruft.cpp')
| -rw-r--r-- | libc/bionic/ndk_cruft.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index 1ae388b..e3e640a 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -36,6 +36,7 @@ #include <signal.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <sys/resource.h> #include <sys/syscall.h> #include <sys/time.h> @@ -296,4 +297,9 @@ extern "C" int ftime(struct timeb* tb) { return 0; } +// This was removed from POSIX 2008. +extern "C" char* index(const char* str, int ch) { + return strchr(str, ch); +} + #endif |
