cgui: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-05-08 21:41:29 -07:00
parent f88215e151
commit 24cd0d2de9
2 changed files with 19 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
diff --git a/examples/25viewer.c b/examples/25viewer.c
index 37e4585..a0328f0 100644
--- a/examples/25viewer.c
+++ b/examples/25viewer.c
@@ -10,8 +10,9 @@
static const char *fname; /* stores name of file to open */
-void quit()
+void quit(void *data)
{
+ (void)data;
exit(0);
}
+4
View File
@@ -17,6 +17,10 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "1pp1hvidpilq37skkmbgba4lvzi01rasy04y0cnas9ck0canv00s";
};
patches = [
./fix-gcc15.patch
];
buildInputs = [
texinfo
allegro