[V3,3/4] Android NDK: no index function in strings.h

Submitted by Zhang, Ning A on April 4, 2019, 2:22 a.m.


Message ID 20190404022232.17124-4-ning.a.zhang@intel.com
State Accepted
Series "patches for build CRIU with Android NDK"
Commit 31e3e01fe49c0f19fd8eda62a5bf5322c3bb38e5
Headers show

Commit Message

Zhang, Ning A April 4, 2019, 2:22 a.m.
From: Zhang Ning <ning.a.zhang@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@intel.com>
Signed-off-by: Zhang Ning <ning.a.zhang@intel.com>
 criu/config.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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'))