소스 검색

Fixed building rtp.hpp on Windows

Staz M 4 년 전
부모
커밋
a5eb653064
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      include/rtc/rtp.hpp

+ 5 - 1
include/rtc/rtp.hpp

@@ -21,7 +21,11 @@
 #define WEBRTC_SERVER_RTP_HPP
 
 #include <cmath>
-#include <netinet/in.h>
+#ifdef _WIN32
+#include <winsock2.h>
+#else
+#include <arpa/inet.h>
+#endif
 #include <rtc/log.hpp>
 
 #ifndef htonll