Skip to content

Commit 3a50c5b

Browse files
authored
[staging-next] csdr: fix build with GCC 14 for ARM (#366762)
2 parents 76fae76 + 913935d commit 3a50c5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/by-name/cs/csdr/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
1919
sha256 = "sha256-LdVzeTTIvDQIXRdcz/vpQu/fUgtE8nx1kIEfoiwxrUg=";
2020
};
2121

22+
postPatch = ''
23+
# function is not defined in any headers but used in libcsdr.c
24+
echo "int errhead();" >> src/predefined.h
25+
'';
26+
2227
nativeBuildInputs = [
2328
cmake
2429
pkg-config

0 commit comments

Comments
 (0)