Some common examples use glibc/Linux specific syscall.
This patch series add check in configure.ac for these call and disables them if 
not present.

You'll notice some subblocks have been added. They are there to avoid 
compilation warnings/errors about unused variables when these calls are not 
available

This series should apply (and be applied) on the monarch_lts branch too.

Nicolas Morey-Chaisemartin (4):
  configure: check for non standard function availability
  performance: crypto: only call getrusage if available
  example: traffic_mgmt: only call glibc specific functions if available
  example: hello: only call sched_setaffinity if available

 configure.ac                              |  5 +++-
 example/hello/odp_hello.c                 | 21 ++++++++++-------
 example/traffic_mgmt/odp_traffic_mgmt.c   | 38 +++++++++++++++++++++++--------
 test/common_plat/performance/odp_crypto.c |  5 ++++
 4 files changed, 51 insertions(+), 18 deletions(-)

Reply via email to