diff --git a/lib/socket_addr.cpp b/lib/socket_addr.cpp index 945072f60..a68c6e23b 100644 --- a/lib/socket_addr.cpp +++ b/lib/socket_addr.cpp @@ -27,7 +27,10 @@ #include #include -#include + +#ifdef WITH_SOCKET_LAYER_ETH + #include +#endif /* WITH_SOCKET_LAYER_ETH */ using namespace villas::utils; diff --git a/lib/super_node.cpp b/lib/super_node.cpp index 8acfd75df..b53e70b20 100644 --- a/lib/super_node.cpp +++ b/lib/super_node.cpp @@ -477,7 +477,9 @@ SuperNode::~SuperNode() vlist_destroy(&paths, (dtor_cb_t) path_destroy, true); vlist_destroy(&nodes, (dtor_cb_t) node_destroy, true); +#ifdef WITH_NETEM vlist_destroy(&interfaces, (dtor_cb_t) if_destroy, true); +#endif /* WITH_NETEM */ } int SuperNode::periodic()