tools/helpers: fix build of xen-init-dom0 with -Werror
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 12 Jul 2022 06:38:35 +0000 (08:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Jul 2022 06:38:35 +0000 (08:38 +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>
tools/helpers/xen-init-dom0.c

index 37eff8868f2545224d8e43430d93fd9235e1e566..764f8378878ebcfdbcd1e11c7a0fb3e391341d65 100644 (file)
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>