mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.89k stars 373 forks source link

Fix build with GCC13 #496

Closed Vascom closed 1 year ago

Vascom commented 1 year ago

Due to changes in GCC13 need fix include. https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

Else this error happen

/builddir/build/BUILD/libtins-4.4/src/../include/tins/ip_address.h:265:31: error: 'uint32_t' is not a member of 'std'; did you mean 'wint_t'?
  265 |         return std::hash<std::uint32_t>()(addr);
      |                               ^~~~~~~~
mfontanini commented 1 year ago

Nice, thanks!