summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-08 10:21:20 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-08 10:21:20 +0200
commit26866d2c1f2432b25b5db71995bce2035187c715 (patch)
tree39e6c66ccc4fd69863edf7f1dd103407940edafd
parent36a19bfde48939a3653345ac943b1c8bf23f3c13 (diff)
downloadrtems-libbsd-26866d2c1f2432b25b5db71995bce2035187c715.tar.bz2
Fix linker errors with minimal build set
-rw-r--r--rtemsbsd/rtems/rtems-bsd-init-dhcp.c5
-rw-r--r--testsuite/include/rtems/bsd/test/default-network-init.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-init-dhcp.c b/rtemsbsd/rtems/rtems-bsd-init-dhcp.c
index e0a298f7..d91f439b 100644
--- a/rtemsbsd/rtems/rtems-bsd-init-dhcp.c
+++ b/rtemsbsd/rtems/rtems-bsd-init-dhcp.c
@@ -38,6 +38,7 @@
*/
#include <rtems/bsd/bsd.h>
+#include <rtems/bsd/modules.h>
#include <rtems/dhcpcd.h>
#include <sysexits.h>
@@ -76,7 +77,11 @@ rtems_bsd_initialize_dhcp(void)
#define RTEMS_BSD_CONFIG_NET_PF_UNIX
#define RTEMS_BSD_CONFIG_NET_IP_MROUTE
+
+#ifdef RTEMS_BSD_MODULE_NETINET6
#define RTEMS_BSD_CONFIG_NET_IP6_MROUTE
+#endif
+
#define RTEMS_BSD_CONFIG_NET_IF_BRIDGE
#define RTEMS_BSD_CONFIG_NET_IF_LAGG
#define RTEMS_BSD_CONFIG_NET_IF_VLAN
diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/testsuite/include/rtems/bsd/test/default-network-init.h
index b48240ce..02cdd33f 100644
--- a/testsuite/include/rtems/bsd/test/default-network-init.h
+++ b/testsuite/include/rtems/bsd/test/default-network-init.h
@@ -255,7 +255,11 @@ Init(rtems_task_argument arg)
#define RTEMS_BSD_CONFIG_NET_PF_UNIX
#define RTEMS_BSD_CONFIG_NET_IP_MROUTE
+
+#ifdef RTEMS_BSD_MODULE_NETINET6
#define RTEMS_BSD_CONFIG_NET_IP6_MROUTE
+#endif
+
#define RTEMS_BSD_CONFIG_NET_IF_BRIDGE
#define RTEMS_BSD_CONFIG_NET_IF_LAGG
#define RTEMS_BSD_CONFIG_NET_IF_VLAN