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>
Kostiantyn Kostiuk committed
Mar 27, 2026 at 15:43 UTC
842bf693ef89b5bf45786c015dba10c637725527
1 file changed
+1
-1
meson.build
+1
-1
@@ -1068,7 +1068,7 @@ endif
1068
1069
if not cc.compiles('''
1070
#include <glib.h>
1071
- #include <unistd.h>
1071
+ #include <stddef.h>
1072
1073
#define QEMU_BUILD_BUG_ON(x) \
1074
typedef char qemu_build_bug_on[(x)?-1:1] __attribute__((unused));