[rtems commit] bsps: Fix header includes

Sebastian Huber sebh at rtems.org
Tue Aug 27 08:44:49 UTC 2013


Module:    rtems
Branch:    master
Commit:    d56f76ac93d8b01394d9116ad155ef98915883fc
Changeset: http://git.rtems.org/rtems/commit/?id=d56f76ac93d8b01394d9116ad155ef98915883fc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug 26 13:00:53 2013 +0200

bsps: Fix header includes

---

 c/src/lib/libbsp/shared/bootcard.c         |    8 +-------
 c/src/lib/libbsp/shared/include/bootcard.h |    6 ++++--
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index 81ef70e..1509431 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -46,15 +46,9 @@
  *  http://www.rtems.com/license/LICENSE.
  */
 
-#include <rtems.h>
-
 #include <bsp/bootcard.h>
-#include <rtems/bspIo.h>
-#include <rtems/malloc.h>
 
-#ifdef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
-#include <unistd.h> /* for sbrk() */
-#endif
+#include <rtems.h>
 
 /*
  *  At most a single pointer to the cmdline for those target
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index ca27832..688e848 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -29,10 +29,12 @@
 #ifndef LIBBSP_SHARED_BOOTCARD_H
 #define LIBBSP_SHARED_BOOTCARD_H
 
-#include <unistd.h>
+#include <string.h>
 
-#include <rtems/malloc.h>
+#include <rtems/config.h>
 #include <rtems/bspIo.h>
+#include <rtems/malloc.h>
+#include <rtems/score/wkspace.h>
 
 #include <bspopts.h>
 




More information about the vc mailing list