Skip to content

meson: unbreak sysctl.h detection on BSDs

Jan Beich requested to merge jbeich/mesa:meson/sysctl into master

<sys/sysctl.h> is not standalone on FreeBSD and OpenBSD. According to manpage either <sys/types.h> or <sys/param.h> is necessary but style discourages using both. CC @zeising

Currently, only affects swrast (gallium) which falls back to sysconf.

https://man.freebsd.org/sysctl/3
https://man.openbsd.org/sysctl.2

https://man.openbsd.org/style
https://man.freebsd.org/style

Merge request reports