diff --git a/Makefile.dep b/Makefile.dep index fa45d3d2c88fb7e87704113337695ce6e80a9912..25ba8fe1ee37733adf5e449ebccce22a375cad0c 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -35,6 +35,14 @@ ifneq (,$(filter ng_zep,$(USEMODULE))) USEMODULE += vtimer endif +ifneq (,$(filter ng_rpl,$(USEMODULE))) + USEMODULE += fib + USEMODULE += gnrc + USEMODULE += ng_ipv6_router_default + USEMODULE += trickle + USEMODULE += vtimer +endif + ifneq (,$(filter ieee802154,$(USEMODULE))) ifneq (,$(filter ng_ipv6, $(USEMODULE))) USEMODULE += ng_sixlowpan @@ -262,13 +270,3 @@ endif ifneq (,$(filter hih6130,$(USEMODULE))) USEMODULE += vtimer endif - -ifneq (,$(filter ng_rpl,$(USEMODULE))) - USEMODULE += timex - USEMODULE += vtimer - USEMODULE += ng_ipv6_router_default - USEMODULE += trickle - USEMODULE += net_help - USEMODULE += universal_address - USEMODULE += fib -endif diff --git a/sys/include/net/ng_rpl.h b/sys/include/net/ng_rpl.h index 67717a1ab6c94a1fb9e2fd31e36521379cdc68fe..dacc4cfe5d90281d890ae8f78031d3d10f62154e 100644 --- a/sys/include/net/ng_rpl.h +++ b/sys/include/net/ng_rpl.h @@ -36,7 +36,6 @@ #include "net/ng_rpl/structs.h" #include "net/ng_rpl/dodag.h" #include "net/ng_rpl/of_manager.h" -#include "inet_ntop.h" #include "net/fib.h" #include "vtimer.h" #include "trickle.h" diff --git a/sys/net/routing/ng_rpl/ng_rpl_dodag.c b/sys/net/routing/ng_rpl/ng_rpl_dodag.c index 6da4b1703dfbbd687ce381636c0cffe88518e52d..fb8190dfa183c5a9b30111216394df5d22a84418 100644 --- a/sys/net/routing/ng_rpl/ng_rpl_dodag.c +++ b/sys/net/routing/ng_rpl/ng_rpl_dodag.c @@ -16,6 +16,7 @@ */ #include <stdbool.h> +#include "inet_pton.h" #include "net/ng_rpl/dodag.h" #include "net/ng_rpl/structs.h" #include "utlist.h"