fixes api-next CC odp_schedule.lo odp_schedule.c: In function 'schedule_loop': odp_schedule.c:589:13: error: storage size of 'next' isn't known odp_time_t next, wtime; ^
Signed-off-by: Mike Holmes <mike.hol...@linaro.org> --- platform/linux-generic/odp_schedule.c | 2 ++ test/performance/odp_pktio_perf.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 3017876..c163634 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#define _POSIX_C_SOURCE 200809L + #include <string.h> #include <odp/schedule.h> #include <odp_schedule_internal.h> diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index 8737bc8..59a1007 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -20,6 +20,9 @@ * a single packet rate can be specified on the command line. * */ + +#define _POSIX_C_SOURCE 200809L + #include <odp.h> #include <odp/helper/eth.h> -- 2.5.0 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp