Re: [PATCH] meson: improve CPU affinity routines check

2021-11-23 Thread Roman Bogorodskiy
Martin Kletzander wrote: > On Mon, Nov 22, 2021 at 03:22:11PM +0400, Roman Bogorodskiy wrote: > > Martin Kletzander wrote: > > > >> On Sun, Nov 21, 2021 at 07:58:55PM +0400, Roman Bogorodskiy wrote: > >> >Recently, FreeBSD has got sched_get/setaffinity(3) implementations and > >> >the sched.h h

Re: [PATCH] meson: improve CPU affinity routines check

2021-11-23 Thread Martin Kletzander
On Mon, Nov 22, 2021 at 03:22:11PM +0400, Roman Bogorodskiy wrote: Martin Kletzander wrote: On Sun, Nov 21, 2021 at 07:58:55PM +0400, Roman Bogorodskiy wrote: >Recently, FreeBSD has got sched_get/setaffinity(3) implementations and >the sched.h header as well [1]. To make these routines visible

Re: [PATCH] meson: improve CPU affinity routines check

2021-11-22 Thread Roman Bogorodskiy
Martin Kletzander wrote: > On Sun, Nov 21, 2021 at 07:58:55PM +0400, Roman Bogorodskiy wrote: > >Recently, FreeBSD has got sched_get/setaffinity(3) implementations and > >the sched.h header as well [1]. To make these routines visible, > >users have to define _WITH_CPU_SET_T. > > > >This breaks c

Re: [PATCH] meson: improve CPU affinity routines check

2021-11-21 Thread Martin Kletzander
On Sun, Nov 21, 2021 at 07:58:55PM +0400, Roman Bogorodskiy wrote: Recently, FreeBSD has got sched_get/setaffinity(3) implementations and the sched.h header as well [1]. To make these routines visible, users have to define _WITH_CPU_SET_T. This breaks current detection. Specifically, meson sees

[PATCH] meson: improve CPU affinity routines check

2021-11-21 Thread Roman Bogorodskiy
Recently, FreeBSD has got sched_get/setaffinity(3) implementations and the sched.h header as well [1]. To make these routines visible, users have to define _WITH_CPU_SET_T. This breaks current detection. Specifically, meson sees the sched_getaffinity() symbol and defines WITH_SCHED_GETAFFINITY. Th