Unverified Commit d95226c4 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

lttv: fix build with gcc14 (#393190)

parents 0073b353 16d8b557
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchpatch,
  pkg-config,
  glib,
  gtk2,
@@ -18,6 +19,15 @@ stdenv.mkDerivation rec {
    sha256 = "1faldxnh9dld5k0vxckwpqw241ya1r2zv286l6rpgqr500zqw7r1";
  };

  patches = [
    # fix build with gcc14:
    (fetchpatch {
      name = "lttv-c99-compatibility-fix.patch";
      url = "https://git.lttng.org/?p=lttv.git;a=patch;h=6b9d59fe4cc1dc943501ab6ede93856b2f06c3ce";
      hash = "sha256-zcLHBri0i10NGkgiZT6QRZbixffYvkzLaFBeC/ESF/U=";
    })
  ];

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    glib