mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-20 21:10:54 +08:00
修复ENABLE_WEBRTC、ENABLE_OPENSSL关闭时编译报错问题 (#4501)
修复:当ENABLE_WEBRTC=OFF且ENABLE_OPENSSL=OFF时,编译报错:找不到ssl.h
This commit is contained in:
@@ -25,16 +25,19 @@
|
||||
#include "Http/HttpSession.h"
|
||||
#include "Shell/ShellSession.h"
|
||||
#include "Player/PlayerProxy.h"
|
||||
#include "webrtc/WebRtcProxyPlayer.h"
|
||||
#include "webrtc/WebRtcProxyPlayerImp.h"
|
||||
#include "../webrtc/WebRtcSignalingPeer.h"
|
||||
#include "../webrtc/WebRtcSignalingSession.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace toolkit;
|
||||
using namespace mediakit;
|
||||
|
||||
#ifdef ENABLE_WEBRTC
|
||||
#include "../webrtc/WebRtcSession.h"
|
||||
|
||||
#include "webrtc/WebRtcProxyPlayer.h"
|
||||
#include "webrtc/WebRtcProxyPlayerImp.h"
|
||||
#include "webrtc/WebRtcSignalingPeer.h"
|
||||
#include "webrtc/WebRtcSignalingSession.h"
|
||||
#include "webrtc/WebRtcSession.h"
|
||||
|
||||
static UdpServer::Ptr rtcServer_udp;
|
||||
static TcpServer::Ptr rtcServer_tcp;
|
||||
class WebRtcArgsUrl : public mediakit::WebRtcArgs {
|
||||
@@ -184,4 +187,4 @@ API_EXPORT void API_CALL mk_webrtc_list_rooms(on_mk_webrtc_room_keeper_data_cb c
|
||||
#else
|
||||
WarnL << "未启用webrtc功能, 编译时请开启ENABLE_WEBRTC";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user