Browse Source

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

Paul-Louis Ageneau 3 years ago
parent
commit
c3db962ce6
1 changed files with 3 additions and 1 deletions
  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