sched_getcpu() and pthread_setaffinity_np() are non-portable

Reported by Yuri Victorovich, on FreeBSD.

* configure.ac: Test for them.
* spot/mc/mc_instanciator.hh: Only use them if they are present.
* NEWS: Mention the fix.
This commit is contained in:
Alexandre Duret-Lutz 2021-11-22 10:23:14 +01:00
parent 5f49209caf
commit 2a408bbed1
3 changed files with 14 additions and 5 deletions

3
NEWS
View file

@ -5,6 +5,9 @@ New in spot 2.10.1.dev (not yet released)
- twa_graph::purge_dead_states() now also removes edges labeled by
bddfalse.
- only use sched_getcpu() and pthread_setaffinity_np() when they are
available.
New in spot 2.10.1 (2021-11-19)
Build: