Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/performance-thread: fix build with pkg-config
[ upstream commit e0216ac ] main.c: In function ‘lthread_tx’: main.c:2091:25: error: implicit declaration of function ‘sched_getcpu’; did you mean ‘sched_getparam’? [-Werror=implicit-function-declaration] 2091 | tx_conf->conf.cpu_id = sched_getcpu(); | ^~~~~~~~~~~~ | sched_getparam cc1: all warnings being treated as errors Explicitly pass _GNU_SOURCE and include missing header (rather than rely on automagic inclusion from other system headers). Fixes: d48415e ("examples/performance-thread: add l3fwd-thread app") Signed-off-by: David Marchand <david.marchand@redhat.com>
- Loading branch information