Unverified Commit e5cef759 authored by Toma's avatar Toma Committed by GitHub
Browse files

exatorrent: fix build with gcc15 (#476612)

parents 4f43a6ca d116c4dd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -63,6 +63,11 @@ buildGoModule (finalAttrs: {
    "-extldflags '-static'"
  ];

  # Fix build with GCC 15
  # from vendor/github.com/anacrolix/go-libutp/callbacks.go:4:
  # ./utp_types.h:120:15: error: two or more data types in declaration specifiers
  env.NIX_CFLAGS_COMPILE = "-std=gnu17";

  buildInputs = lib.optionals stdenv.hostPlatform.isGnu [
    stdenv.cc.libc.static
  ];