Explorar o código

Added sys/socket.h and netinet/in.h to media example

Paul-Louis Ageneau %!s(int64=4) %!d(string=hai) anos
pai
achega
c3db962ce6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      examples/media/main.cpp

+ 3 - 1
examples/media/main.cpp

@@ -1,5 +1,5 @@
 /*
- * libdatachannel client example
+ * libdatachannel media example
  * Copyright (c) 2020 Staz Modrzynski
  * Copyright (c) 2020 Paul-Louis Ageneau
  *
@@ -30,7 +30,9 @@
 #ifdef _WIN32
 #include <winsock2.h>
 #else
+#include <sys/socket.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
 typedef int SOCKET;
 #endif