Commit 842bf693ef for qemu.org

commit 842bf693ef89b5bf45786c015dba10c637725527
Author: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Date:   Fri Mar 27 15:43:47 2026 +0200

    meson: Use stddef.h instead of unistd.h

    POSIX says stddef.h provides size_t, which is the only thing
    we care about here. unistd.h can be missing in non-POSIX runtimes,
    so include stddef.h instead.

    Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Link: https://lore.kernel.org/r/20260327134401.270186-2-kkostiuk@redhat.com
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

diff --git a/meson.build b/meson.build
index ab3e97eb9f..457491c34e 100644
--- a/meson.build
+++ b/meson.build
@@ -1068,7 +1068,7 @@ endif

 if not cc.compiles('''
   #include <glib.h>
-  #include <unistd.h>
+  #include <stddef.h>

   #define QEMU_BUILD_BUG_ON(x) \
   typedef char qemu_build_bug_on[(x)?-1:1] __attribute__((unused));