From 2ce7c403546f8ae2dce5f2af370a07884250f377 Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Thu, 5 Feb 2026 23:10:17 +0300 Subject: [PATCH] Update config-host.h Fix build compatibility with GCC 15.2+ which defaults to -std=c23 --- slirp_glue/config-host.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slirp_glue/config-host.h b/slirp_glue/config-host.h index 9bb557ce4..5de159284 100644 --- a/slirp_glue/config-host.h +++ b/slirp_glue/config-host.h @@ -12,8 +12,10 @@ typedef int SOCKET; #endif #ifndef __cplusplus +#if __STDC_VERSION__ < 202311L typedef int bool; #endif +#endif #ifdef _MSC_VER #include #else @@ -54,3 +56,4 @@ int qemu_recv (int s, void *buf, size_t len, int flags); #define error_report(...) fprintf(stderr, __VA_ARGS__) #endif +