Commit 31e3e01f authored by Zhang Ning's avatar Zhang Ning Committed by Andrei Vagin

Android NDK: no index function in strings.h

due to Android NDK's strings.h doesn't have index function.
Declare this function in CRIU, just like povit_root.

still need to provide index function implement, for link CRIU.

Cc: Chen Hu <hu1.chen@intel.com>
Signed-off-by: 's avatarZhang Ning <ning.a.zhang@intel.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
parent 74bb7a56
......@@ -378,6 +378,8 @@ Esyntax:
return -1;
}
extern char *index(const char *s, int c);
static size_t parse_size(char *optarg)
{
if (index(optarg, 'K'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment