[rtems commit] bsps/lm32: Do not include network headers in bsp.h

Sebastian Huber sebh at rtems.org
Mon Jan 15 06:26:13 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jan 12 07:25:01 2018 +0100

bsps/lm32: Do not include network headers in bsp.h

Update #3254.

---

 c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h  | 6 ++----
 c/src/lib/libbsp/lm32/milkymist/include/bsp.h | 1 -
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h b/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h
index 6540488..7c3ac84 100644
--- a/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h
+++ b/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h
@@ -35,10 +35,6 @@
  * @brief EVR support package.
  */
 
-#if defined(RTEMS_NETWORKING)
-#include <rtems/rtems_bsdnet.h>
-#endif
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -53,6 +49,8 @@ extern "C" {
 #define CPU_U32_FIX
 
 #if defined(RTEMS_NETWORKING)
+struct rtems_bsdnet_ifconfig;
+
 extern int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config,
 				     int attaching);
 
diff --git a/c/src/lib/libbsp/lm32/milkymist/include/bsp.h b/c/src/lib/libbsp/lm32/milkymist/include/bsp.h
index 0759a64..d8af4a3 100644
--- a/c/src/lib/libbsp/lm32/milkymist/include/bsp.h
+++ b/c/src/lib/libbsp/lm32/milkymist/include/bsp.h
@@ -48,7 +48,6 @@ extern "C" {
 #define CPU_U32_FIX
 
 #if defined(RTEMS_NETWORKING)
-#include <rtems/rtems_bsdnet.h>
 struct rtems_bsdnet_ifconfig;
 extern int rtems_minimac_driver_attach (struct rtems_bsdnet_ifconfig *config,
                                         int attaching);



More information about the vc mailing list