diff --git a/bsps/shared/grlib/uart/apbuart_cons.c b/bsps/shared/grlib/uart/apbuart_cons.c index a0a265ab31..c35020e53f 100644 --- a/bsps/shared/grlib/uart/apbuart_cons.c +++ b/bsps/shared/grlib/uart/apbuart_cons.c @@ -43,6 +43,7 @@ /* LEON3 Low level transmit/receive functions provided by debug-uart code */ #ifdef LEON3 +#include extern struct apbuart_regs *leon3_debug_uart; /* The debug UART */ #endif diff --git a/bsps/sparc/leon3/mpci/getcfg.c b/bsps/sparc/leon3/mpci/getcfg.c index fc67cf8e3a..a707b65725 100644 --- a/bsps/sparc/leon3/mpci/getcfg.c +++ b/bsps/sparc/leon3/mpci/getcfg.c @@ -15,6 +15,7 @@ #include #include +#include #include /* Let user override this configuration by declaring this a weak variable */