musl doesn't define RUSAGE_THREAD but has RUSAGE_CHILDREN instead, with the same value 1.
Signed-off-by: Ruslan Babayev <[email protected]> --- test/performance/odp_crypto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index 404984d..fa8cc8f 100644 --- a/test/performance/odp_crypto.c +++ b/test/performance/odp_crypto.c @@ -270,6 +270,9 @@ print_config_names(const char *prefix) { static void fill_time_record(time_record_t *rec) { +#if !defined(RUSAGE_THREAD) && defined(RUSAGE_CHILDREN) +#define RUSAGE_THREAD RUSAGE_CHILDREN +#endif gettimeofday(&rec->tv, NULL); getrusage(RUSAGE_SELF, &rec->ru_self); getrusage(RUSAGE_THREAD, &rec->ru_thread); -- 2.7.4 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
