diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-29 11:18:10 +0200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-02 15:37:26 +0100 |
commit | 10f6b65545579fcac65d783156db7a70eeca2550 (patch) | |
tree | b5ce73d1d8a03eef16c29652d10bdfaac6458d07 | |
parent | 6072b7c808043b6886c33f896e06fc32ee28346e (diff) | |
download | xen-10f6b65545579fcac65d783156db7a70eeca2550.tar.gz xen-10f6b65545579fcac65d783156db7a70eeca2550.tar.bz2 xen-10f6b65545579fcac65d783156db7a70eeca2550.zip |
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 <della5@iinet.com.au>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
-rw-r--r-- | stubdom/grub/config.h | 1 | ||||
-rw-r--r-- | xen/include/xen/libelf.h | 2 |
2 files changed, 3 insertions, 0 deletions
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 <ctype.h> #include <string.h> +#include <kernel.h> #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 <public/elfnote.h> #include <public/features.h> +#include <xen/string.h> #else #include <xen/elfnote.h> #include <xen/features.h> #include <stdarg.h> +#include <string.h> struct elf_binary; typedef void elf_log_callback(struct elf_binary*, void *caller_data, |