Commit 03e96250 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

dc3dd: fix for `gcc-15`

Without the chnage the build fails as https://hydra.nixos.org/build/326967790:

```
In file included from argmatch.c:22:
argmatch.c: In function '__argmatch_die':
./config.h:8:22: error: too many arguments to function 'usage'; expected 0, have 1
    8 | #define ARGMATCH_DIE usage (1)
      |                      ^~~~~  ~
```

Work it around by falling back to pre-c23 standard.
parent e2aae6df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ stdenv.mkDerivation (finalAttrs: {

  buildInputs = [ perlPackages.LocaleGettext ];

  # Remove once upstream ports to c23: https://sourceforge.net/p/dc3dd/bugs/24/
  env.NIX_CFLAGS_COMPILE = "-std=gnu17";

  makeFlags = [
    "PREFIX=$out"
    "CC=${stdenv.cc.targetPrefix}cc"