numam-dpdk/examples/performance-thread
David Marchand e0216ac509 examples/performance-thread: fix build with pkg-config
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: d48415e1fe ("examples/performance-thread: add l3fwd-thread app")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
2020-11-15 15:31:15 +01:00
..
common examples/performance-thread: convert to pkg-config-based build 2020-09-07 23:51:56 +02:00
l3fwd-thread examples/performance-thread: fix build with pkg-config 2020-11-15 15:31:15 +01:00
pthread_shim examples: stop processing meson file if build impossible 2020-11-12 19:33:36 +01:00
Makefile examples/performance-thread: convert to pkg-config-based build 2020-09-07 23:51:56 +02:00