Quellcode durchsuchen

Fixed building rtp.hpp on Windows

Staz M vor 4 Jahren
Ursprung
Commit
a5eb653064
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  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