midicsv: fix build with gcc15 (#516767)

This commit is contained in:
yaya
2026-05-07 18:56:01 +00:00
committed by GitHub
2 changed files with 16 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
diff --git a/getopt.c b/getopt.c
index 1564e53..8db0459 100644
--- a/getopt.c
+++ b/getopt.c
@@ -73,7 +73,6 @@ int Getopt(int nargc, char *nargv[], char *ostr)
static char *place = EMSG; /* option letter processing */
static char *lastostr = (char *) 0;
register char *oli; /* option letter list index */
- char *index();
/* LANCE PATCH: dynamic reinitialization */
if (ostr != lastostr) {
+4
View File
@@ -13,6 +13,10 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw";
};
patches = [
./fix-gcc15.patch
];
postPatch = ''
substituteInPlace Makefile \
--replace /usr/local $out \