From d693b22733044d68e9974766b5c9e6259c9b1708 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Tue, 12 Jul 2022 08:38:35 +0200 Subject: [PATCH] tools/helpers: fix build of xen-init-dom0 with -Werror Missing prototype of asprintf() without _GNU_SOURCE. Signed-off-by: Anthony PERARD Reviewed-by: Henry Wang --- tools/helpers/xen-init-dom0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/helpers/xen-init-dom0.c b/tools/helpers/xen-init-dom0.c index 37eff8868f..764f837887 100644 --- a/tools/helpers/xen-init-dom0.c +++ b/tools/helpers/xen-init-dom0.c @@ -1,3 +1,5 @@ +#define _GNU_SOURCE + #include #include #include -- 2.30.2