Skip to content

Commit

Permalink
Add #include <algorithm> to fix building with gcc 14
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kostadinsh committed Nov 24, 2023
1 parent cafd410 commit f75f925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/impl/icetransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "transport.hpp"
#include "utils.hpp"

#include <algorithm>
#include <iostream>
#include <random>
#include <sstream>
Expand Down

0 comments on commit f75f925

Please sign in to comment.