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

Re: [PATCH v2 0/2] Fix /proc/*/stat parsing

2021-11-21 Thread Martin Kletzander
On Sun, Nov 21, 2021 at 12:04:24AM +0100, Martin Kletzander wrote: While working on some polkit stuff I found out that we are inconsistent with the way we parse /proc/*/stat files, so I added a new helper instead along with some tests. Unfortunately using it for the thing I wanted is not really

[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