From: Anthony PERARD Date: Tue, 12 Jul 2022 09:16:10 +0000 (+0200) Subject: tools/helpers: fix build of xen-init-dom0 with -Werror X-Git-Tag: archive/raspbian/4.16.2-1+rpi1^2~34^2~38 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=14fd97e3de939a63a6e467f240efb49fe226a5dc;p=xen.git 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 master commit: d693b22733044d68e9974766b5c9e6259c9b1708 master date: 2022-07-12 08:38:35 +0200 --- diff --git a/tools/helpers/xen-init-dom0.c b/tools/helpers/xen-init-dom0.c index c99224a4b6..b4861c9e80 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