[PATCH 1/7] bsps/lm32: Do not include network headers in bsp.h
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jan 12 09:14:46 UTC 2018
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 65404882e2..7c3ac8400d 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 0759a64ba4..d8af4a3124 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);
--
2.12.3
More information about the devel
mailing list