Ver código fonte

Fixed building rtp.hpp on Windows

Staz M 4 anos atrás
pai
commit
a5eb653064
1 arquivos alterados com 5 adições e 1 exclusões
  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