From 42c2963d00c3f9682c043a0940f6440c0c26b7de Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Thu, 21 Mar 2024 00:14:30 +0800 Subject: [PATCH] fix compile error for enable_webrtc is off --- api/source/mk_events_objects.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/source/mk_events_objects.cpp b/api/source/mk_events_objects.cpp index 89b8c659..c30fd0cd 100644 --- a/api/source/mk_events_objects.cpp +++ b/api/source/mk_events_objects.cpp @@ -17,7 +17,10 @@ #include "Http/HttpClient.h" #include "Rtsp/RtspSession.h" + +#ifdef ENABLE_WEBRTC #include "webrtc/WebRtcTransport.h" +#endif using namespace toolkit; using namespace mediakit;