Browse Source

Fixed building rtp.hpp on Windows

Staz M 4 years ago
parent
commit
a5eb653064
1 changed files with 5 additions and 1 deletions
  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