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.
This commit is contained in:
Sergei Trofimovich
2026-05-03 14:36:02 +01:00
parent e2aae6df2b
commit 03e96250de
+3
View File
@@ -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"