id3: fix build with gcc15 (#517347)
This commit is contained in:
@@ -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
|
||||
@@ -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)" ];
|
||||
|
||||
Reference in New Issue
Block a user