Unverified Commit c9b44ac6 authored by Sefa Eyeoglu's avatar Sefa Eyeoglu Committed by GitHub
Browse files

ja2-stracciatella: fix build with gcc13 (#353028)

parents 72de283d 6965f057
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -49,6 +49,10 @@ stdenv.mkDerivation {
    cmakeFlagsArray+=("-DLOCAL_RAPIDJSON_LIB=OFF" "-DLOCAL_GTEST_LIB=OFF" "-DEXTRA_DATA_DIR=$out/share/ja2")
  '';

  # error: 'uint64_t' does not name a type
  # gcc13 and above don't automatically include cstdint
  env.CXXFLAGS = "-include cstdint";

  doInstallCheck = true;
  installCheckPhase = ''
    HOME=/tmp $out/bin/ja2 -unittests