]> xenbits.xensource.com Git - xen.git/commitdiff
tools/helpers: fix build of xen-init-dom0 with -Werror
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 12 Jul 2022 09:16:10 +0000 (11:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Jul 2022 09:16:10 +0000 (11:16 +0200)
Missing prototype of asprintf() without _GNU_SOURCE.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
master commit: d693b22733044d68e9974766b5c9e6259c9b1708
master date: 2022-07-12 08:38:35 +0200

tools/helpers/xen-init-dom0.c

index c99224a4b607604e80c4ae1985b2724e278b8cd5..b4861c9e804120487662450d08a9a6000bf35c6c 100644 (file)
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>