gltron: fix the build against gcc-14

Without the change `gltron` fails to build as:

    ./src/gltron.c: In function 'main':
    ./src/gltron.c:13:30: error: passing argument 2 of 'initSubsystems' from incompatible pointer type [-Wincompatible-pointer-types]
       13 |         initSubsystems(argc, argv);
          |                              ^~~~
          |                              |
          |                              char **
This commit is contained in:
Sergei Trofimovich
2024-12-23 16:37:49 +00:00
parent 02d93dd7ec
commit 9e7181bcbb
+10 -1
View File
@@ -20,7 +20,16 @@ stdenv.mkDerivation rec {
sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0";
};
patches = [ ./gentoo-prototypes.patch ];
patches = [
./gentoo-prototypes.patch
# gcc-14 build fix: https://sourceforge.net/p/gltron/patches/7/
(fetchurl {
name = "gcc-14.patch";
url = "https://sourceforge.net/p/gltron/patches/7/attachment/gcc-14.patch";
hash = "sha256-OJAUAM/OQVwxYnIacBkncNxMLn/HDCoysbi+Txe+DC8=";
})
];
postPatch = ''
# Fix https://sourceforge.net/p/gltron/bugs/15