From: Samuel Thibault Date: Mon, 29 Jul 2013 09:18:10 +0000 (+0200) Subject: stubdom: Fix stubdom undeclared function build warnings X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6579 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=10f6b65545579fcac65d783156db7a70eeca2550;p=xen.git stubdom: Fix stubdom undeclared function build warnings This includes a few headers to fix some missing function declarations. ../grub-upstream/stage2/builtins.c:1728:3: warning: implicit declaration of function ‘do_exit’ [-Wimplicit-function-declaration] stubdom/include/xen/libelf/libelf.h:453:5: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration] Reported-by: IAN DELANEY Signed-off-by: Samuel Thibault Acked-by: Ian Campbell --- diff --git a/stubdom/grub/config.h b/stubdom/grub/config.h index 1649d51459..15a6583999 100644 --- a/stubdom/grub/config.h +++ b/stubdom/grub/config.h @@ -2,6 +2,7 @@ #undef putchar #include #include +#include #define debug _debug #define grub_halt(a) do_exit() #define printf grub_printf diff --git a/xen/include/xen/libelf.h b/xen/include/xen/libelf.h index 2a6fa54b02..e65db6df5a 100644 --- a/xen/include/xen/libelf.h +++ b/xen/include/xen/libelf.h @@ -39,11 +39,13 @@ typedef int elf_negerrnoval; /* 0: ok; -EFOO: error */ #ifdef __XEN__ #include #include +#include #else #include #include #include +#include struct elf_binary; typedef void elf_log_callback(struct elf_binary*, void *caller_data,