gpm: Fix build with gcc=15

This commit is contained in:
Dmitry Bogatov
2025-08-04 17:41:02 +00:00
parent 82b27bd911
commit ecea3c1bce

View File

@@ -64,6 +64,9 @@ stdenv.mkDerivation {
"--sysconfdir=/etc"
"--localstatedir=/var"
(if withNcurses then "--with-curses" else "--without-curses")
# The code won't compile in c23 mode.
# https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
"CFLAGS=-std=gnu17"
];
enableParallelBuilding = true;