Commit bbe42235 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

openmw-tes3mp: fix `raknet` depend build on `gcc-13`

Without the change build fails on `master` as
https://cache.nixos.org/log/hhs17z23wxncxpbcgy1w98w5zh6xh8qw-raknet-unstable-2020-01-19.drv:

    In file included from /build/source/Source/Utils/_FindFirst.cpp:7:
    /build/source/Source/Utils/_FindFirst.h:50:15: error: 'intptr_t' was not declared in this scope
       50 | int _findnext(intptr_t h, _finddata_t *f);
          |               ^~~~~~~~
parent 1ab54f84
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -27,6 +27,16 @@ let
      sha256 = "WIaJkSQnoOm9T7GoAwmWl7fNg79coIo/ILUsWcbH+lA=";
    };

    patches = [
      # gcc-13 build fix:
      #   https://github.com/TES3MP/CrabNet/pull/18
      (fetchpatch {
        name = "gcc-13.patch";
        url = "https://github.com/TES3MP/CrabNet/commit/3ec9a338a7cefd5cc751c9d29095cafa4c73be20.patch";
        hash = "sha256-zE87icjX9GSnApgKQXj0K4IjlrReV/upFLjVgNYkNfM=";
      })
    ];

    cmakeFlags = [
      "-DCRABNET_ENABLE_DLL=OFF"
    ];