id3: fix build with gcc15 (#517347)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-07 23:46:37 +00:00
committed by GitHub
2 changed files with 17 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
diff --git a/fileops.c b/fileops.c
index 1e70af1..9017bd0 100644
--- a/fileops.c
+++ b/fileops.c
@@ -68,7 +68,6 @@ FILE *ftemp(char *templ, const char *mode)
#else
int fd = mkstemp(templ);
if(fd >= 0) {
- FILE* fdopen(); /* in case -ansi is used */
if(f = fdopen(fd, mode)) return f;
close(fd);
#endif
+5
View File
@@ -16,6 +16,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-+h1wwgTB7CpbjyUAK+9BNRhmy83D+1I+cZ70E1m3ENk=";
};
patches = [
# https://github.com/squell/id3/pull/35
./fix-gcc15.patch
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
makeFlags = [ "prefix=$(out)" ];