[CRIU] [V3 3/4] Android NDK: no index function in strings.h
ning.a.zhang at intel.com
ning.a.zhang at intel.com
Thu Apr 4 05:22:31 MSK 2019
From: Zhang Ning <ning.a.zhang at intel.com>
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 at intel.com>
Signed-off-by: Zhang Ning <ning.a.zhang at intel.com>
---
criu/config.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/criu/config.c b/criu/config.c
index d4dd6c87..f587b6ba 100644
--- a/criu/config.c
+++ b/criu/config.c
@@ -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'))
--
2.20.1
More information about the CRIU
mailing list