libbsp/powerpc/shared/uboot_getenv.c: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-15 14:23:30 -05:00
parent 72866a7da4
commit e59d26fc19

View File

@@ -7,9 +7,16 @@
* http://www.rtems.org/license/LICENSE.
*/
#include <bsp.h>
/*
* If the BSP variant does not have UBoot, then disable all contents
* of this file.
*/
#if defined(HAS_UBOOT)
#include <stdint.h>
#include <string.h>
#include <bsp.h>
/* Assumed to be provided by BSP */
extern const uint8_t *uboot_environment;
@@ -64,4 +71,4 @@ const char *bsp_uboot_getenv(
return NULL;
}
#endif /* defined(HAS_UBOOT) */