On Thu, 26 Mar 2026 at 16:03, Kostiantyn Kostiuk <kkostiuk@redhat.com> wrote:
>
> This is more cross-platform way.
>
> Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
> ---
> meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meson.build b/meson.build
> index d7c4095b39..711dafa9ce 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1060,7 +1060,7 @@ endif
>
> if not cc.compiles('''
> #include <glib.h>
> - #include <unistd.h>
> + #include <stddef.h>
POSIX says stddef.h provides size_t, which is the only thing
we care about here. (But it also says that unistd.h provides
it, so your platform is broken.)
This is the kind of detail that should be in the commit message:
you need to explain why it is OK to make the change and why
the previous code is wrong.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM