diff --git a/p2p/BUILD.gn b/p2p/BUILD.gn index ed7321384d..6dafc83b41 100644 --- a/p2p/BUILD.gn +++ b/p2p/BUILD.gn @@ -145,6 +145,7 @@ rtc_library("basic_port_allocator") { rtc_source_set("candidate_pair_interface") { sources = [ "base/candidate_pair_interface.h" ] + deps = [ "../api:candidate" ] } rtc_library("connection") { diff --git a/p2p/base/candidate_pair_interface.h b/p2p/base/candidate_pair_interface.h index a04ab130cf..55769dcea7 100644 --- a/p2p/base/candidate_pair_interface.h +++ b/p2p/base/candidate_pair_interface.h @@ -11,9 +11,9 @@ #ifndef P2P_BASE_CANDIDATE_PAIR_INTERFACE_H_ #define P2P_BASE_CANDIDATE_PAIR_INTERFACE_H_ -namespace cricket { +#include "api/candidate.h" -class Candidate; +namespace cricket { class CandidatePairInterface { public: