summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijay@rtems.org>2021-04-03 19:03:50 -0600
committerVijay Kumar Banerjee <vijay@rtems.org>2021-04-13 23:54:56 -0600
commitdd4c87392dc9e940a294d149c8be386c8f18b0f8 (patch)
tree3ebd8ee9afc7316422e23ad78cb070777f61a17d
parent52169bd2981e5a8a0535b0c3cf8e5868aa393b50 (diff)
downloadrtems-net-legacy-dd4c87392dc9e940a294d149c8be386c8f18b0f8.tar.bz2
Remove RTEMS_NETWORKING checks
-rw-r--r--bsps/powerpc/mpc55xxevb/net/smsc9218i.c4
-rw-r--r--libmisc/dummy-networking.c44
2 files changed, 23 insertions, 25 deletions
diff --git a/bsps/powerpc/mpc55xxevb/net/smsc9218i.c b/bsps/powerpc/mpc55xxevb/net/smsc9218i.c
index d88aa8a..384f9cd 100644
--- a/bsps/powerpc/mpc55xxevb/net/smsc9218i.c
+++ b/bsps/powerpc/mpc55xxevb/net/smsc9218i.c
@@ -24,7 +24,7 @@
#include <mpc55xx/regs.h>
-#if defined(RTEMS_NETWORKING) && defined(MPC55XX_HAS_SIU)
+#if defined(MPC55XX_HAS_SIU)
#include <machine/rtems-bsd-kernel-space.h>
@@ -2121,4 +2121,4 @@ int smsc9218i_attach_detach(
return 0;
}
-#endif /* defined(RTEMS_NETWORKING) && defined(MPC55XX_HAS_SIU) */
+#endif /* defined(MPC55XX_HAS_SIU) */
diff --git a/libmisc/dummy-networking.c b/libmisc/dummy-networking.c
index 379e23e..b7f15c8 100644
--- a/libmisc/dummy-networking.c
+++ b/libmisc/dummy-networking.c
@@ -16,27 +16,25 @@
#include <rtems.h>
/* Loopback Network Configuration */
-#if defined(RTEMS_NETWORKING)
- #include <rtems/rtems_bsdnet.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
+#include <rtems/rtems_bsdnet.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
- struct rtems_bsdnet_config rtems_bsdnet_config = {
- NULL, /* Network interface */
- NULL, /* Use fixed network configuration */
- 0, /* Default network task priority */
- 0, /* Default mbuf capacity */
- 0, /* Default mbuf cluster capacity */
- "testSystem", /* Host name */
- "nowhere.com", /* Domain name */
- "127.0.0.1", /* Gateway */
- "127.0.0.1", /* Log host */
- {"127.0.0.1" }, /* Name server(s) */
- {"127.0.0.1" }, /* NTP server(s) */
- 1, /* sb_efficiency */
- 0, /* udp_tx_buf_size */
- 0, /* udp_rx_buf_size */
- 0, /* tcp_tx_buf_size */
- 0 /* tcp_rx_buf_size */
- };
-#endif
+struct rtems_bsdnet_config rtems_bsdnet_config = {
+ NULL, /* Network interface */
+ NULL, /* Use fixed network configuration */
+ 0, /* Default network task priority */
+ 0, /* Default mbuf capacity */
+ 0, /* Default mbuf cluster capacity */
+ "testSystem", /* Host name */
+ "nowhere.com", /* Domain name */
+ "127.0.0.1", /* Gateway */
+ "127.0.0.1", /* Log host */
+ {"127.0.0.1" }, /* Name server(s) */
+ {"127.0.0.1" }, /* NTP server(s) */
+ 1, /* sb_efficiency */
+ 0, /* udp_tx_buf_size */
+ 0, /* udp_rx_buf_size */
+ 0, /* tcp_tx_buf_size */
+ 0 /* tcp_rx_buf_size */
+};