mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 07:12:21 +08:00
修复windows下的编译问题
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
|
||||
#include <list>
|
||||
#include <type_traits>
|
||||
#include <arpa/inet.h>
|
||||
#include "RtpBroadCaster.h"
|
||||
#include "Util/util.h"
|
||||
#include "Network/sockutil.h"
|
||||
#include "RtspSession.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ZL::Network;
|
||||
|
||||
namespace ZL {
|
||||
namespace Rtsp {
|
||||
@@ -40,8 +40,7 @@ namespace Rtsp {
|
||||
static uint32_t addressToInt(const string &ip){
|
||||
struct in_addr addr;
|
||||
bzero(&addr,sizeof(addr));
|
||||
|
||||
inet_aton(ip.data(),&addr);
|
||||
addr.s_addr = inet_addr(ip.data());
|
||||
return (uint32_t)ntohl((uint32_t &)addr.s_addr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user