浏览代码

Add #include <algorithm> to fix building with gcc 14

With gcc 14 some C++ Standard Library headers have been changed to no
longer include other headers that were used internally by the library.
In libdatachannel's case it is the <algorithm> header.

GCC 14 porting guide: https://gcc.gnu.org/gcc-14/porting_to.html#header-dep-changes

Signed-off-by: Kostadin Shishmanov <[email protected]>
Kostadin Shishmanov 1 年之前
父节点
当前提交
f75f925617
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/impl/icetransport.cpp

+ 1 - 0
src/impl/icetransport.cpp

@@ -12,6 +12,7 @@
 #include "transport.hpp"
 #include "utils.hpp"
 
+#include <algorithm>
 #include <iostream>
 #include <random>
 #include <sstream>