meson: unbreak sysctl.h detection on BSDs
authorJan Beich <jbeich@FreeBSD.org>
Sat, 30 May 2020 22:41:48 +0000 (22:41 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Jun 2020 23:24:54 +0000 (23:24 +0000)
commit63b81c9915ce438e73e14412cbf3a9154b415f35
treeb3cb47a502aeeda6e428294901ded34d6ce2a11d
parent2a80f96b51134c74f2836493f97ee48239382799
meson: unbreak sysctl.h detection on BSDs

Code:
 #include <sys/sysctl.h>
Compiler stdout:

Compiler stderr:
 In file included from testfile.c:1:
/usr/include/sys/sysctl.h:1184:40: error: unknown type name 'size_t'
int     sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
                                           ^
/usr/include/sys/sysctl.h:1185:40: error: unknown type name 'size_t'
int     sysctlbyname(const char *, void *, size_t *, const void *, size_t);
                                           ^
/usr/include/sys/sysctl.h:1186:42: error: unknown type name 'size_t'
int     sysctlnametomib(const char *, int *, size_t *);
                                             ^
3 errors generated.

Checking if "sys/sysctl.h" compiles: NO

<https://gitlab.freedesktop.org/mesa/drm/-/commit/1f8ada802391>
<https://gitlab.freedesktop.org/mesa/drm/-/commit/4083e8f2c659>

Reviewed-by: Niclas Zeising <zeising@daemonic.se>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5462>
meson.build