ja2-stracciatella: fix build with gcc13

This commit is contained in:
TomaSajt 2024-11-02 00:50:16 +01:00
parent 5b13e7dfe6
commit 6965f0578e
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -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